mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-26 07:16:28 +02:00
Add activate_home_screen and is_element_present functions
This commit is contained in:
parent
f06fb0f8b0
commit
49941285ca
@ -87,13 +87,7 @@ def activate_home_screen(driver,mode):
|
|||||||
Select(driver.find_element_by_id("section")).select_by_visible_text(mode)
|
Select(driver.find_element_by_id("section")).select_by_visible_text(mode)
|
||||||
driver.find_element_by_id("submit-uptbutton").click()
|
driver.find_element_by_id("submit-uptbutton").click()
|
||||||
|
|
||||||
def activate_home_screen(driver,mode):
|
def is_element_present(driver, how, what):
|
||||||
|
|
||||||
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):
|
|
||||||
from selenium.common.exceptions import NoSuchElementException
|
from selenium.common.exceptions import NoSuchElementException
|
||||||
try:
|
try:
|
||||||
driver.implicitly_wait(5)
|
driver.implicitly_wait(5)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user