From 49941285ca72b75722782b0757cdf7ef3f89c66c Mon Sep 17 00:00:00 2001 From: cesar991 Date: Mon, 11 Jul 2016 14:37:01 +0200 Subject: [PATCH] Add activate_home_screen and is_element_present functions --- tests/console/include/common_functions_60.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/console/include/common_functions_60.py b/tests/console/include/common_functions_60.py index f9ba3dde15..5c52aba3c8 100644 --- a/tests/console/include/common_functions_60.py +++ b/tests/console/include/common_functions_60.py @@ -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)