Add activate_home_screen and is_element_present functions
This commit is contained in:
parent
f06fb0f8b0
commit
49941285ca
|
@ -81,19 +81,13 @@ def detect_and_pass_all_wizards(driver):
|
|||
detect_and_pass_initial_wizard(driver)
|
||||
detect_and_pass_newsletter_wizard(driver)
|
||||
|
||||
def activate_home_screen(driver,mode):
|
||||
|
||||
click_menu_element(driver,"Edit my user")
|
||||
Select(driver.find_element_by_id("section")).select_by_visible_text(mode)
|
||||
driver.find_element_by_id("submit-uptbutton").click()
|
||||
|
||||
def activate_home_screen(driver,mode):
|
||||
|
||||
click_menu_element(driver,"Edit my user")
|
||||
Select(driver.find_element_by_id("section")).select_by_visible_text(mode)
|
||||
driver.find_element_by_id("submit-uptbutton").click()
|
||||
|
||||
-def is_element_present(driver, how, what):
|
||||
def is_element_present(driver, how, what):
|
||||
from selenium.common.exceptions import NoSuchElementException
|
||||
try:
|
||||
driver.implicitly_wait(5)
|
||||
|
|
Loading…
Reference in New Issue