Is-Displayed

Tests whether the element is visible.

Powershell

Tests whether the element is visible. $true or $false depending of the visibility of the element.

Syntax

Is-Displayed [-sessionId ] [-elementId] []

Parameters

name description
sessionId (Optional) The identifier of the session to route the command to.
elementId The identifier element.

Examples

Is-Displayed -elementId $loginButton

C#

Declaration

bool OpenQA.Selenium.IWebElement.Displayed;

Returns:

type description
bool A value indicating whether or not this element is displayed.

Examples

element.Displayed;