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


Please enter your comment!
Please enter your name here