Table of Contents

Class VisibilityQuery

Namespace
CSF.Screenplay.Selenium.Queries
Assembly
CSF.Screenplay.Selenium.dll

A query to get the visibility of a Selenium element.

public class VisibilityQuery : IQuery<bool>, IHasName
Inheritance
VisibilityQuery
Implements
Inherited Members

Remarks

This query will have a value of true if the element is visible on the web page; false if it is not.

Properties

Name

Gets the human-readable name of the current object.

public string Name { get; }

Property Value

string

Remarks

null is strongly discouraged here. All types which implement IHasName should return a non-null response from this property.

Methods

GetValue(SeleniumElement)

Gets the current value from a Selenium element.

public bool GetValue(SeleniumElement element)

Parameters

element SeleniumElement

The Selenium element.

Returns

bool

The value of type bool.