I am getting exceptions as:

Unsupported command exception: isElementDisplayed


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()) {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.