Dismiss 'Turn on Notifications' offer on session start
(browser, logger)
| 564 | |
| 565 | |
| 566 | def dismiss_notification_offer(browser, logger): |
| 567 | """Dismiss 'Turn on Notifications' offer on session start""" |
| 568 | offer_elem_loc = read_xpath(dismiss_notification_offer.__name__, "offer_elem_loc") |
| 569 | dismiss_elem_loc = read_xpath( |
| 570 | dismiss_notification_offer.__name__, "dismiss_elem_loc" |
| 571 | ) |
| 572 | |
| 573 | # wait a bit and see if the 'Turn on Notifications' offer rises up |
| 574 | offer_loaded = explicit_wait( |
| 575 | browser, "VOEL", [offer_elem_loc, "XPath"], logger, 4, False |
| 576 | ) |
| 577 | |
| 578 | if offer_loaded: |
| 579 | dismiss_elem = browser.find_element(By.XPATH, dismiss_elem_loc) |
| 580 | click_element(browser, dismiss_elem) |
| 581 | |
| 582 | |
| 583 | def dismiss_save_information(browser, logger): |
no test coverage detected