When i check if element exist on screen like this :
if(driver.findElement(By.name(“OK”)).isEnabled())
I get an error message :
org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 37 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html6
I need to check is the element (popup message with “OK” button) exist
Thanks !
created
Jul '18
last reply
Jul '18
- 10
replies
- 2.7k
views
- 5
users
- 2
links