Use to check the elements visibility

The element may exist but if not visible, this will show that.
If the element is present but not visible it can show that.

You can use WebElement.isDisplayed()

Be aware though that an element needs to be both visible and enabled, i.e.

public bool IsElementVisible(IWebElement element)
{
    return element.Displayed && element.Enabled;
}



Source link https://sqa.stackexchange.com/questions/32769/how-to-know-where--is--in-selenium-

LEAVE A REPLY

Please enter your comment!
Please enter your name here