-2

When I was using selneium I found a problem.

enter image description here as the picture shows

How can I tell if this loading element has disappeared?

Because it causes me to click on the element in the form, it will give an error: the element cannot click。

Can I use invisibility_of_element_located to determine if the loading element has disappeared

3
  • 1
    show us your code and tell us which element you want to click in that image Commented May 31, 2018 at 17:38
  • You need to create a locator that finds the loader and then wait for it to be invisible. Commented May 31, 2018 at 19:54
  • Possible duplicate of Wait until element is not present Commented May 31, 2018 at 19:55

1 Answer 1

-1

Use below code to check , it will help you to check if the element is displayed or not

if( driver.findElement(By.xpath("any xpath")).isDisplayed()){
System.out.println("Element is Visible");
}else{
System.out.println("Element is InVisible");
}
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.