MCPcopy Index your code
hub / github.com/InstaPy/InstaPy / dismiss_this_was_me

Function dismiss_this_was_me

instapy/login_util.py:602–613  ·  view source on GitHub ↗
(browser)

Source from the content-addressed store, hash-verified

600
601
602def dismiss_this_was_me(browser):
603 try:
604 # click on "This was me" button if challenge page was called
605 this_was_me_button = browser.find_element(
606 By.XPATH, read_xpath(dismiss_this_was_me.__name__, "this_was_me_button")
607 )
608 (ActionChains(browser).move_to_element(this_was_me_button).click().perform())
609 # update server calls
610 update_activity(browser, state=None)
611 except NoSuchElementException:
612 # no verification needed
613 pass
614
615
616def two_factor_authentication(browser, logger, security_codes):

Callers 1

bypass_suspicious_loginFunction · 0.85

Calls 2

read_xpathFunction · 0.85
update_activityFunction · 0.85

Tested by

no test coverage detected