| Package | Description |
|---|---|
| net.serenitybdd.screenplay.targets | |
| net.serenitybdd.screenplay.ui |
| Modifier and Type | Class and Description |
|---|---|
class |
ByMobileTarget |
class |
ByTarget |
class |
LambdaTarget |
class |
MultiXPathOrCssTarget |
class |
XPathOrCssTarget |
| Modifier and Type | Method and Description |
|---|---|
abstract SearchableTarget |
Target.called(String name) |
SearchableTarget |
SearchableTarget.containingText(String text) |
SearchableTarget |
SearchableTarget.containingTextIgnoringCase(String text) |
SearchableTarget |
Target.inside(String locator) |
SearchableTarget |
Target.inside(Target container) |
SearchableTarget |
TargetBuilder.located(org.openqa.selenium.By locator) |
SearchableTarget |
TargetBuilder.locatedBy(Function<org.openqa.selenium.SearchContext,List<WebElementFacade>> locationStrategy)
Locate an element using a location strategy function.
|
SearchableTarget |
TargetBuilder.locatedBy(String cssOrXPathSelector) |
SearchableTarget |
TargetBuilder.locatedByFirstMatching(String... cssOrXPathSelectors) |
SearchableTarget |
ByMobileTarget.of(String... parameters) |
abstract SearchableTarget |
Target.of(String... parameters) |
SearchableTarget |
XPathOrCssTarget.of(String... parameters) |
SearchableTarget |
LambdaTarget.of(String... parameters) |
SearchableTarget |
ByTarget.of(String... parameters) |
SearchableTarget |
MultiXPathOrCssTarget.of(String... parameters) |
| Modifier and Type | Method and Description |
|---|---|
static SearchableTarget |
Link.containing(String text)
Locate a link element containing given text.
|
static SearchableTarget |
PageElement.containingText(String text)
Locate an element that contains a specified text value in it's body.
|
SearchableTarget |
PageElementBuilder.containingText(String text) |
static SearchableTarget |
Button.containingText(String text)
Locate an element that contains a specified text value in its body.
|
static SearchableTarget |
PageElement.containingText(String cssOrXPathLocator,
String text)
Look for an element matching a given CSS or XPath expression that contains a given text.
|
static SearchableTarget |
PageElement.containingTextIgnoringCase(String cssOrXPathLocator,
String text)
Look for an element matching a given CSS or XPath expression that contains a given text regardless of case
|
SearchableTarget |
PageElementBuilder.describedAs(String name) |
static SearchableTarget |
Label.forField(String fieldId)
Locate a label for a given field
|
static SearchableTarget |
RadioButton.located(org.openqa.selenium.By selector)
Locate a button using an arbitrary CSS or XPath expression
|
static SearchableTarget |
Dropdown.located(org.openqa.selenium.By selector) |
static SearchableTarget |
PageElement.located(org.openqa.selenium.By selector)
Locate an element using a By locator
|
static SearchableTarget |
Checkbox.located(org.openqa.selenium.By selector) |
static SearchableTarget |
Button.located(org.openqa.selenium.By selector) |
static SearchableTarget |
TextArea.located(org.openqa.selenium.By selector)
Locate a button using an arbitrary CSS or XPath expression
|
static SearchableTarget |
InputField.located(org.openqa.selenium.By selector)
Locate a button using an arbitrary CSS or XPath expression
|
static SearchableTarget |
Link.located(org.openqa.selenium.By selector) |
static SearchableTarget |
Label.located(org.openqa.selenium.By selector)
Locate a button using an arbitrary CSS or XPath expression
|
static SearchableTarget |
Image.located(org.openqa.selenium.By selector) |
static SearchableTarget |
RadioButton.locatedBy(String selector)
Locate a button using an arbitrary CSS or XPath expression
|
static SearchableTarget |
Dropdown.locatedBy(String selector)
Locate an dropdown using an arbitrary CSS or XPath expression
|
static SearchableTarget |
PageElement.locatedBy(String selector)
Locate an element using an arbitrary CSS or XPath expression
|
static SearchableTarget |
Checkbox.locatedBy(String selector)
Locate an checkbox using an arbitrary CSS or XPath expression
|
static SearchableTarget |
Button.locatedBy(String selector)
Locate a button using an arbitrary CSS or XPath expression
|
static SearchableTarget |
TextArea.locatedBy(String selector)
Locate a button using an arbitrary CSS or XPath expression
|
static SearchableTarget |
InputField.locatedBy(String selector)
Locate a button using an arbitrary CSS or XPath expression
|
static SearchableTarget |
Link.locatedBy(String selector)
Locate an image using an arbitrary CSS or XPath expression
|
static SearchableTarget |
Label.locatedBy(String selector)
Locate a button using an arbitrary CSS or XPath expression
|
static SearchableTarget |
Image.locatedBy(String selector)
Locate an image using an arbitrary CSS or XPath expression
|
static SearchableTarget |
Link.startingWith(String text)
Locate a link element starting with given text.
|
static SearchableTarget |
Image.withAltText(String altText)
Locate a image with a specified alt text
|
static SearchableTarget |
RadioButton.withAriaLabel(String name)
Locate a button using the ARIA label value
|
static SearchableTarget |
Button.withAriaLabel(String name)
Locate a button using the ARIA label value
|
static SearchableTarget |
TextArea.withAriaLabel(String name)
Locate a button using the ARIA label value
|
static SearchableTarget |
InputField.withAriaLabel(String name)
Locate a button using the ARIA label value
|
static SearchableTarget |
RadioButton.withCSSClass(String className)
Look for an element with a given CSS class
|
static SearchableTarget |
PageElement.withCSSClass(String className)
Look for an element with a given CSS class
|
static SearchableTarget |
Button.withCSSClass(String className)
Look for an element with a given CSS class
|
static SearchableTarget |
TextArea.withCSSClass(String className)
Look for an element with a given CSS class
|
static SearchableTarget |
InputField.withCSSClass(String className)
Look for an element with a given CSS class
|
static SearchableTarget |
Link.withCSSClass(String className)
Look for an element with a given CSS class
|
static SearchableTarget |
Dropdown.withDefaultOption(String defaultOption) |
static SearchableTarget |
Button.withIcon(String icon)
A button containing an icon
|
static SearchableTarget |
Link.withIcon(String icon) |
static SearchableTarget |
RadioButton.withId(String id)
Locate a radio button with a given name or id.
|
static SearchableTarget |
RadioButton.withLabel(String labelText)
Locate a radio button with a given label
|
static SearchableTarget |
Dropdown.withLabel(String labelText) |
static SearchableTarget |
Button.withLabel(String labelText)
Locate a button using an HTML Label value
|
static SearchableTarget |
Button.withLocalisedLabelFor(String name)
Locate a button using an internationalised element.
|
static SearchableTarget |
RadioButton.withName(String name)
Locate a radio button with a given name
|
static SearchableTarget |
Dropdown.withNameOrId(String nameOrId)
Locate a button element with a given id, name or aria-label.
|
static SearchableTarget |
PageElement.withNameOrId(String name)
Locate an element with a given name.
|
static SearchableTarget |
Checkbox.withNameOrId(String name)
Locate a radio button with a given name or id.
|
static SearchableTarget |
Button.withNameOrId(String nameOrId)
Locate a button element with a given id, name or aria-label.
|
static SearchableTarget |
TextArea.withNameOrId(String name)
Locate a field with a given name, id, data-test or ARIA label.
|
static SearchableTarget |
InputField.withNameOrId(String name)
Locate a field with a given name, id, data-test or ARIA label.
|
static SearchableTarget |
Link.withNameOrId(String name)
Locate a link element with a given name or id.
|
static SearchableTarget |
TextArea.withPlaceholder(String placeholderName)
Locate an HTML input field with a specified placeholder name
|
static SearchableTarget |
InputField.withPlaceholder(String placeholderName)
Locate an HTML input field with a specified placeholder name
|
static SearchableTarget |
Image.withSrc(String srcValue)
Locate a image with a specified src attribute
|
static SearchableTarget |
Image.withSrcEndingWith(String srcValue) |
static SearchableTarget |
Image.withSrcStartingWith(String srcValue) |
static SearchableTarget |
Button.withText(String name)
Locate a button element with a given text.
|
static SearchableTarget |
Link.withText(String name)
Locate a link element with a given text.
|
static SearchableTarget |
Label.withText(String text)
Locate a label with a given text
|
static SearchableTarget |
Link.withTitle(String title) |
static SearchableTarget |
RadioButton.withValue(String value)
Locate a radio button with a given value.
|
Copyright © 2022. All rights reserved.