Uses of Class
net.serenitybdd.screenplay.playwright.Target
Packages that use Target
Package
Description
-
Uses of Target in net.serenitybdd.screenplay.playwright
Methods in net.serenitybdd.screenplay.playwright that return TargetModifier and TypeMethodDescriptionCreate a target that chains this locator with a child locator.Target.getContainer()Get the container target (if any).Specify that this target is inside an iframe.Create a target that locates this element inside a container element.Specify the selector for the target element.Create a parameterized version of this target by substituting placeholders.Methods in net.serenitybdd.screenplay.playwright with parameters of type TargetModifier and TypeMethodDescriptionCreate a target that chains this locator with a child locator.Create a target that locates this element inside a container element.Constructors in net.serenitybdd.screenplay.playwright with parameters of type Target -
Uses of Target in net.serenitybdd.screenplay.playwright.assertions
Methods in net.serenitybdd.screenplay.playwright.assertions with parameters of type TargetConstructors in net.serenitybdd.screenplay.playwright.assertions with parameters of type Target -
Uses of Target in net.serenitybdd.screenplay.playwright.assertions.visual
Methods in net.serenitybdd.screenplay.playwright.assertions.visual with parameters of type TargetModifier and TypeMethodDescriptionstatic CompareScreenshotCompare a screenshot of a specific Target element. -
Uses of Target in net.serenitybdd.screenplay.playwright.interactions
Methods in net.serenitybdd.screenplay.playwright.interactions with parameters of type TargetModifier and TypeMethodDescriptionstatic UncheckUncheck a Target checkbox.static ScrollIntoViewScroll a Target element into view.static ClearClear a Target input field.net.serenitybdd.screenplay.PerformableSpecify the dropdown to deselect all options from using a Target.net.serenitybdd.screenplay.PerformableSpecify the dropdown to deselect from using a Target.static DragStart a drag operation from the specified Target.net.serenitybdd.screenplay.Performablenet.serenitybdd.screenplay.Performablestatic Clickstatic DoubleClickstatic RightClickRight-click on a Target element.net.serenitybdd.screenplay.PerformableComplete the drag operation by dropping onto the specified Target.static HoverHover over a Target element.static WaitForWait for an element to be in a given state.static Checkstatic DragStart a drag operation from the specified Target.net.serenitybdd.screenplay.PerformableComplete the drag operation by dropping onto the specified Target.static Scroll.ScrollToElementScroll to a Target element.net.serenitybdd.screenplay.PerformableConstructors in net.serenitybdd.screenplay.playwright.interactions with parameters of type Target -
Uses of Target in net.serenitybdd.screenplay.playwright.interactions.deselectactions
Constructors in net.serenitybdd.screenplay.playwright.interactions.deselectactions with parameters of type TargetModifierConstructorDescriptionDeselectAllFromTarget(Target target) DeselectByIndexFromTarget(Target target, int index) DeselectByValueFromTarget(Target target, String... values) DeselectByVisibleTextFromTarget(Target target, String option) -
Uses of Target in net.serenitybdd.screenplay.playwright.interactions.selectactions
Constructors in net.serenitybdd.screenplay.playwright.interactions.selectactions with parameters of type TargetModifierConstructorDescriptionSelectByIndexFromTarget(Target target, int index) SelectByValueFromTarget(Target target, String... values) SelectByVisibleTextFromTarget(Target target, String option) -
Uses of Target in net.serenitybdd.screenplay.playwright.questions
Methods in net.serenitybdd.screenplay.playwright.questions with parameters of type TargetModifier and TypeMethodDescriptionstatic AbsenceCheck if a Target element is absent.static AccessibilitySnapshotGet the accessibility snapshot of a specific Target element.static AllOptionTextsGet all option texts from a Target select element.static net.serenitybdd.screenplay.Question<String>static AttributeOfAllGet attribute values from elements matching a Target.static CheckedCheck if a Target element is checked.static CountCount elements matching a Target.static CSSClassesGet CSS classes for a Target element.static CSSValueGet CSS value for a Target element.static DisabledCheck if a Target element is disabled.static EditableCheck if a Target element is editable.static ElementBoundsGet bounds for a Target element.static EnabledCheck if a Target element is enabled.static FocusedCheck if a Target element has focus.static InnerHTMLGet inner HTML for a Target element.static OuterHTMLGet outer HTML for a Target element.static PresenceCheck if a Target element is present.static SelectedOptionTextGet selected option text from a Target select element.static net.serenitybdd.screenplay.Question<String>static TextOfAllGet text of all elements matching a Target.static ValueGet value for a Target input element.static net.serenitybdd.screenplay.Question<Boolean> -
Uses of Target in net.serenitybdd.screenplay.playwright.ui
Methods in net.serenitybdd.screenplay.playwright.ui that return TargetModifier and TypeMethodDescriptionstatic TargetButton.containingText(String text) Locate a button containing the specified text (partial match).static TargetLink.containingText(String text) Locate a link containing the specified text (partial match).static TargetLabel.forFieldId(String fieldId) Locate a label by its 'for' attribute (field association).static TargetLocate a button using a custom Playwright selector.static TargetLocate a checkbox using a custom Playwright selector.static TargetLocate a dropdown using a custom Playwright selector.static TargetLocate an image using a custom Playwright selector.static TargetLocate an input field using a custom Playwright selector.static TargetLocate a label using a custom Playwright selector.static TargetLocate a link using a custom Playwright selector.static TargetLocate a radio button using a custom Playwright selector.static TargetImage.withAltText(String alt) Locate an image by its alt text (case-insensitive).static TargetButton.withAriaLabel(String label) Locate a button by its aria-label attribute (case-insensitive).static TargetInputField.withAriaLabel(String label) Locate an input field by its aria-label attribute (case-insensitive).static TargetLabel.withExactText(String text) Locate a label with exact text content.static TargetLocate a checkbox by its label text (case-insensitive).static TargetLocate a dropdown by its label text (case-insensitive).static TargetLocate an input field by its associated label text.static TargetLocate a radio button by its label text (case-insensitive).static TargetButton.withNameOrId(String name) Locate a button by its name attribute, id, or data-test attribute.static TargetCheckbox.withNameOrId(String name) Locate a checkbox by its name attribute, id, or data-test attribute.static TargetDropdown.withNameOrId(String name) Locate a dropdown by its name attribute, id, or data-test attribute.static TargetInputField.withNameOrId(String name) Locate an input field by its name attribute, id, or data-test attribute.static TargetRadioButton.withNameOrId(String name) Locate a radio button by its name attribute, id, or data-test attribute.static TargetInputField.withPlaceholder(String text) Locate an input field by its placeholder text (case-insensitive).static TargetLocate an image by its exact src attribute.static TargetImage.withSrcContaining(String part) Locate an image whose src contains the specified substring.static TargetLocate a button by its exact accessible name (case-insensitive).static TargetLocate a label containing the specified text (partial match).static TargetLocate a link by its exact accessible name (case-insensitive).static TargetLocate a link by its title attribute (case-insensitive).static TargetLocate a checkbox by its value attribute.static TargetLocate a radio button by its value attribute. -
Uses of Target in net.serenitybdd.screenplay.playwright.waits
Methods in net.serenitybdd.screenplay.playwright.waits with parameters of type Target