Package net.serenitybdd.screenplay.ui
Class PageElement
java.lang.Object
net.serenitybdd.screenplay.ui.PageElement
public class PageElement
extends java.lang.Object
An HTML element representing a button.
-
Constructor Summary
Constructors Constructor Description PageElement() -
Method Summary
Modifier and Type Method Description static SearchableTargetcalled(java.lang.String name)Locate an element with a given name.static SearchableTargetcontainingText(java.lang.String text)Locate an element that contains a specified text value in it's body.static TargetcontainingText(java.lang.String cssOrXPathLocator, java.lang.String text)Look for an element matching a given CSS or XPath expression that contains a given text.static PageElementBuilderlocatedBy(java.lang.String selector)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PageElement
public PageElement()
-
-
Method Details
-
called
Locate an element with a given name. -
containingText
Locate an element that contains a specified text value in it's body. This will not include text that is contained in nested elements. -
containingText
Look for an element matching a given CSS or XPath expression that contains a given text. -
locatedBy
-