1
ExpectedConditions.invisibilityOf(element);

I am getting exceptions as:

Unsupported command exception: isElementDisplayed

alecxe
  • 11,425
  • 10
  • 49
  • 107
STE
  • 749
  • 6
  • 13
  • 26

1 Answers1

-1

I was searching on internet Unsupported command Exception comes, when something XYZ operation is not supported, so try something like this. Keep one while loop, if element is already present and visible, after sometime you waiting for element to vanish.

WebDriverWait wait = new WebDriverWait(fdriver, 10);
                WebElement element = wait.until(ExpectedConditions.elementToBeClickable(ReadExcelFiles.FindElementView(xpath)));        
                while(element.isDisplayed()) {
                    Thread.sleep(500);
                }
}
Ritesh Toppo
  • 101
  • 5