A
A
AR2018-11-19 16:54:05
selenium
AR, 2018-11-19 16:54:05

Why is isDisplayed not working in Selenium?

Good afternoon.
It is necessary to check if the element is visible on the page, why does the method return false when the element is on the page for sure?
driver.findElement(By.id(“#remove-button”)).isDisplayed();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Talik, 2018-11-20
@Talik0507

an element can be on the page and visible to the eye, but not visible and programmatically inaccessible. For example, it is blocked by another currently invisible element.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question