Package net.serenitybdd.screenplay.ui
Class Label
java.lang.Object
net.serenitybdd.screenplay.ui.Label
Interact with a label element
This can be useful when the input element itself is not accessible
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchableTargetLocate a label for a given fieldstatic SearchableTargetlocated(org.openqa.selenium.By selector) Locate a button using an arbitrary CSS or XPath expressionstatic SearchableTargetLocate a button using an arbitrary CSS or XPath expressionstatic SearchableTargetLocate a label with a given text
-
Constructor Details
-
Label
public Label()
-
-
Method Details
-
withText
Locate a label with a given text -
forField
Locate a label for a given field -
locatedBy
Locate a button using an arbitrary CSS or XPath expression -
located
Locate a button using an arbitrary CSS or XPath expression
-