0

I am trying to wait untile the element to be invisible, but getting exception even the element is invisible. wait.until(ExpectedConditions.invisibilityOf(WebElement));

ramesh
  • 15
  • 5
  • 1
    Please show the code and also the website link if possible – Anand Gautam Feb 09 '22 at 09:21
  • String Validationtext = test.validation_message().getText(); if (Validationtext.contains("Invalid job number")) { System.out.println(jnum + " is invalid Job number"); wait.until(ExpectedConditions.invisibilityOf(test.validation_message())); return; } – ramesh Feb 09 '22 at 09:29
  • I dont want to use Thread. sleep, if I use it's working fine. – ramesh Feb 09 '22 at 09:30
  • @ramesh - please edit your question. Show us the full code you are using and the full error you get. – Tal Angel Feb 09 '22 at 10:55

0 Answers0