Dismiss 'Save Your Login Info?' offer on session start
(browser, logger)
| 581 | |
| 582 | |
| 583 | def 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 | |
| 602 | def dismiss_this_was_me(browser): |
no test coverage detected