MCPcopy
hub / github.com/InstaPy/InstaPy / dismiss_save_information

Function dismiss_save_information

instapy/login_util.py:583–599  ·  view source on GitHub ↗

Dismiss 'Save Your Login Info?' offer on session start

(browser, logger)

Source from the content-addressed store, hash-verified

581
582
583def dismiss_save_information(browser, logger):
584 """Dismiss 'Save Your Login Info?' offer on session start"""
585 # This question occurs when pkl doesn't exist
586 offer_elem_loc = read_xpath(dismiss_save_information.__name__, "offer_elem_loc")
587 dismiss_elem_loc = read_xpath(dismiss_save_information.__name__, "dismiss_elem_loc")
588
589 offer_loaded = explicit_wait(
590 browser, "VOEL", [offer_elem_loc, "XPath"], logger, 4, False
591 )
592
593 if offer_loaded:
594 # When prompted chose "Not Now", we don't know if saving information
595 # contributes or stimulate IG to target the acct, it would be better to
596 # just pretend that we are using IG in different browsers.
597 logger.info("- Do not save Login Info by now...")
598 dismiss_elem = browser.find_element(By.XPATH, dismiss_elem_loc)
599 click_element(browser, dismiss_elem)
600
601
602def dismiss_this_was_me(browser):

Callers 1

login_userFunction · 0.85

Calls 3

read_xpathFunction · 0.85
explicit_waitFunction · 0.85
click_elementFunction · 0.85

Tested by

no test coverage detected