Home > Back-end >  Selenium Java Invisibility of Child (nested) element
Selenium Java Invisibility of Child (nested) element

Time:11-26

I know how to wait for element to disappear or appear (invisibilityOfElementLocated or visibilityOfElementLocated) and also how to wait for child (nested) element to appear (presenceOfNestedElementLocatedBy)

but i didn't find a way to wait for child (nested) element to disappear.

will appreciate your help!

CodePudding user response:

It's actually very easy, this will make opposite to any of ExpectedConditions:

ExpectedConditions.not(ExpectedConditions.CONDITION)
  • Related