mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Fixed the is_element_present function AGAIN
This commit is contained in:
parent
78a1a888fd
commit
03cb8b6f5e
@ -63,4 +63,4 @@ def is_element_present(driver, how, what):
|
|||||||
from selenium.common.exceptions import NoSuchElementException
|
from selenium.common.exceptions import NoSuchElementException
|
||||||
try: driver.find_element(by=how, value=what)
|
try: driver.find_element(by=how, value=what)
|
||||||
except NoSuchElementException: return False
|
except NoSuchElementException: return False
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user