Locator |
Locator.and(Locator locator) |
Creates a locator that matches both this locator and the argument locator.
|
default Locator |
Locator.filter() |
This method narrows existing locator according to the options, for example filters by text.
|
Locator |
Locator.filter(Locator.FilterOptions options) |
This method narrows existing locator according to the options, for example filters by text.
|
Locator |
Locator.first() |
Returns locator to the first matching element.
|
default Locator |
Frame.getByAltText(String text) |
Allows locating elements by their alt text.
|
Locator |
Frame.getByAltText(String text,
Frame.GetByAltTextOptions options) |
Allows locating elements by their alt text.
|
default Locator |
Frame.getByAltText(Pattern text) |
Allows locating elements by their alt text.
|
Locator |
Frame.getByAltText(Pattern text,
Frame.GetByAltTextOptions options) |
Allows locating elements by their alt text.
|
default Locator |
FrameLocator.getByAltText(String text) |
Allows locating elements by their alt text.
|
Locator |
FrameLocator.getByAltText(String text,
FrameLocator.GetByAltTextOptions options) |
Allows locating elements by their alt text.
|
default Locator |
FrameLocator.getByAltText(Pattern text) |
Allows locating elements by their alt text.
|
Locator |
FrameLocator.getByAltText(Pattern text,
FrameLocator.GetByAltTextOptions options) |
Allows locating elements by their alt text.
|
default Locator |
Locator.getByAltText(String text) |
Allows locating elements by their alt text.
|
Locator |
Locator.getByAltText(String text,
Locator.GetByAltTextOptions options) |
Allows locating elements by their alt text.
|
default Locator |
Locator.getByAltText(Pattern text) |
Allows locating elements by their alt text.
|
Locator |
Locator.getByAltText(Pattern text,
Locator.GetByAltTextOptions options) |
Allows locating elements by their alt text.
|
default Locator |
Page.getByAltText(String text) |
Allows locating elements by their alt text.
|
Locator |
Page.getByAltText(String text,
Page.GetByAltTextOptions options) |
Allows locating elements by their alt text.
|
default Locator |
Page.getByAltText(Pattern text) |
Allows locating elements by their alt text.
|
Locator |
Page.getByAltText(Pattern text,
Page.GetByAltTextOptions options) |
Allows locating elements by their alt text.
|
default Locator |
Frame.getByLabel(String text) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
Locator |
Frame.getByLabel(String text,
Frame.GetByLabelOptions options) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
default Locator |
Frame.getByLabel(Pattern text) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
Locator |
Frame.getByLabel(Pattern text,
Frame.GetByLabelOptions options) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
default Locator |
FrameLocator.getByLabel(String text) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
Locator |
FrameLocator.getByLabel(String text,
FrameLocator.GetByLabelOptions options) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
default Locator |
FrameLocator.getByLabel(Pattern text) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
Locator |
FrameLocator.getByLabel(Pattern text,
FrameLocator.GetByLabelOptions options) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
default Locator |
Locator.getByLabel(String text) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
Locator |
Locator.getByLabel(String text,
Locator.GetByLabelOptions options) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
default Locator |
Locator.getByLabel(Pattern text) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
Locator |
Locator.getByLabel(Pattern text,
Locator.GetByLabelOptions options) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
default Locator |
Page.getByLabel(String text) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
Locator |
Page.getByLabel(String text,
Page.GetByLabelOptions options) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
default Locator |
Page.getByLabel(Pattern text) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
Locator |
Page.getByLabel(Pattern text,
Page.GetByLabelOptions options) |
Allows locating input elements by the text of the associated <label> or aria-labelledby element, or by
the aria-label attribute.
|
default Locator |
Frame.getByPlaceholder(String text) |
Allows locating input elements by the placeholder text.
|
Locator |
Frame.getByPlaceholder(String text,
Frame.GetByPlaceholderOptions options) |
Allows locating input elements by the placeholder text.
|
default Locator |
Frame.getByPlaceholder(Pattern text) |
Allows locating input elements by the placeholder text.
|
Locator |
Frame.getByPlaceholder(Pattern text,
Frame.GetByPlaceholderOptions options) |
Allows locating input elements by the placeholder text.
|
default Locator |
FrameLocator.getByPlaceholder(String text) |
Allows locating input elements by the placeholder text.
|
Locator |
FrameLocator.getByPlaceholder(String text,
FrameLocator.GetByPlaceholderOptions options) |
Allows locating input elements by the placeholder text.
|
default Locator |
FrameLocator.getByPlaceholder(Pattern text) |
Allows locating input elements by the placeholder text.
|
Locator |
FrameLocator.getByPlaceholder(Pattern text,
FrameLocator.GetByPlaceholderOptions options) |
Allows locating input elements by the placeholder text.
|
default Locator |
Locator.getByPlaceholder(String text) |
Allows locating input elements by the placeholder text.
|
Locator |
Locator.getByPlaceholder(String text,
Locator.GetByPlaceholderOptions options) |
Allows locating input elements by the placeholder text.
|
default Locator |
Locator.getByPlaceholder(Pattern text) |
Allows locating input elements by the placeholder text.
|
Locator |
Locator.getByPlaceholder(Pattern text,
Locator.GetByPlaceholderOptions options) |
Allows locating input elements by the placeholder text.
|
default Locator |
Page.getByPlaceholder(String text) |
Allows locating input elements by the placeholder text.
|
Locator |
Page.getByPlaceholder(String text,
Page.GetByPlaceholderOptions options) |
Allows locating input elements by the placeholder text.
|
default Locator |
Page.getByPlaceholder(Pattern text) |
Allows locating input elements by the placeholder text.
|
Locator |
Page.getByPlaceholder(Pattern text,
Page.GetByPlaceholderOptions options) |
Allows locating input elements by the placeholder text.
|
default Locator |
Frame.getByRole(AriaRole role) |
|
Locator |
Frame.getByRole(AriaRole role,
Frame.GetByRoleOptions options) |
|
default Locator |
FrameLocator.getByRole(AriaRole role) |
|
Locator |
FrameLocator.getByRole(AriaRole role,
FrameLocator.GetByRoleOptions options) |
|
default Locator |
Locator.getByRole(AriaRole role) |
|
Locator |
Locator.getByRole(AriaRole role,
Locator.GetByRoleOptions options) |
|
default Locator |
Page.getByRole(AriaRole role) |
|
Locator |
Page.getByRole(AriaRole role,
Page.GetByRoleOptions options) |
|
Locator |
Frame.getByTestId(String testId) |
Locate element by the test id.
|
Locator |
Frame.getByTestId(Pattern testId) |
Locate element by the test id.
|
Locator |
FrameLocator.getByTestId(String testId) |
Locate element by the test id.
|
Locator |
FrameLocator.getByTestId(Pattern testId) |
Locate element by the test id.
|
Locator |
Locator.getByTestId(String testId) |
Locate element by the test id.
|
Locator |
Locator.getByTestId(Pattern testId) |
Locate element by the test id.
|
Locator |
Page.getByTestId(String testId) |
Locate element by the test id.
|
Locator |
Page.getByTestId(Pattern testId) |
Locate element by the test id.
|
default Locator |
Frame.getByText(String text) |
Allows locating elements that contain given text.
|
Locator |
Frame.getByText(String text,
Frame.GetByTextOptions options) |
Allows locating elements that contain given text.
|
default Locator |
Frame.getByText(Pattern text) |
Allows locating elements that contain given text.
|
Locator |
Frame.getByText(Pattern text,
Frame.GetByTextOptions options) |
Allows locating elements that contain given text.
|
default Locator |
FrameLocator.getByText(String text) |
Allows locating elements that contain given text.
|
Locator |
FrameLocator.getByText(String text,
FrameLocator.GetByTextOptions options) |
Allows locating elements that contain given text.
|
default Locator |
FrameLocator.getByText(Pattern text) |
Allows locating elements that contain given text.
|
Locator |
FrameLocator.getByText(Pattern text,
FrameLocator.GetByTextOptions options) |
Allows locating elements that contain given text.
|
default Locator |
Locator.getByText(String text) |
Allows locating elements that contain given text.
|
Locator |
Locator.getByText(String text,
Locator.GetByTextOptions options) |
Allows locating elements that contain given text.
|
default Locator |
Locator.getByText(Pattern text) |
Allows locating elements that contain given text.
|
Locator |
Locator.getByText(Pattern text,
Locator.GetByTextOptions options) |
Allows locating elements that contain given text.
|
default Locator |
Page.getByText(String text) |
Allows locating elements that contain given text.
|
Locator |
Page.getByText(String text,
Page.GetByTextOptions options) |
Allows locating elements that contain given text.
|
default Locator |
Page.getByText(Pattern text) |
Allows locating elements that contain given text.
|
Locator |
Page.getByText(Pattern text,
Page.GetByTextOptions options) |
Allows locating elements that contain given text.
|
default Locator |
Frame.getByTitle(String text) |
Allows locating elements by their title attribute.
|
Locator |
Frame.getByTitle(String text,
Frame.GetByTitleOptions options) |
Allows locating elements by their title attribute.
|
default Locator |
Frame.getByTitle(Pattern text) |
Allows locating elements by their title attribute.
|
Locator |
Frame.getByTitle(Pattern text,
Frame.GetByTitleOptions options) |
Allows locating elements by their title attribute.
|
default Locator |
FrameLocator.getByTitle(String text) |
Allows locating elements by their title attribute.
|
Locator |
FrameLocator.getByTitle(String text,
FrameLocator.GetByTitleOptions options) |
Allows locating elements by their title attribute.
|
default Locator |
FrameLocator.getByTitle(Pattern text) |
Allows locating elements by their title attribute.
|
Locator |
FrameLocator.getByTitle(Pattern text,
FrameLocator.GetByTitleOptions options) |
Allows locating elements by their title attribute.
|
default Locator |
Locator.getByTitle(String text) |
Allows locating elements by their title attribute.
|
Locator |
Locator.getByTitle(String text,
Locator.GetByTitleOptions options) |
Allows locating elements by their title attribute.
|
default Locator |
Locator.getByTitle(Pattern text) |
Allows locating elements by their title attribute.
|
Locator |
Locator.getByTitle(Pattern text,
Locator.GetByTitleOptions options) |
Allows locating elements by their title attribute.
|
default Locator |
Page.getByTitle(String text) |
Allows locating elements by their title attribute.
|
Locator |
Page.getByTitle(String text,
Page.GetByTitleOptions options) |
Allows locating elements by their title attribute.
|
default Locator |
Page.getByTitle(Pattern text) |
Allows locating elements by their title attribute.
|
Locator |
Page.getByTitle(Pattern text,
Page.GetByTitleOptions options) |
Allows locating elements by their title attribute.
|
Locator |
Locator.last() |
Returns locator to the last matching element.
|
default Locator |
Frame.locator(String selector) |
The method returns an element locator that can be used to perform actions on this page / frame.
|
Locator |
Frame.locator(String selector,
Frame.LocatorOptions options) |
The method returns an element locator that can be used to perform actions on this page / frame.
|
default Locator |
FrameLocator.locator(Locator selectorOrLocator) |
The method finds an element matching the specified selector in the locator's subtree.
|
Locator |
FrameLocator.locator(Locator selectorOrLocator,
FrameLocator.LocatorOptions options) |
The method finds an element matching the specified selector in the locator's subtree.
|
default Locator |
FrameLocator.locator(String selectorOrLocator) |
The method finds an element matching the specified selector in the locator's subtree.
|
Locator |
FrameLocator.locator(String selectorOrLocator,
FrameLocator.LocatorOptions options) |
The method finds an element matching the specified selector in the locator's subtree.
|
default Locator |
Locator.locator(Locator selectorOrLocator) |
The method finds an element matching the specified selector in the locator's subtree.
|
Locator |
Locator.locator(Locator selectorOrLocator,
Locator.LocatorOptions options) |
The method finds an element matching the specified selector in the locator's subtree.
|
default Locator |
Locator.locator(String selectorOrLocator) |
The method finds an element matching the specified selector in the locator's subtree.
|
Locator |
Locator.locator(String selectorOrLocator,
Locator.LocatorOptions options) |
The method finds an element matching the specified selector in the locator's subtree.
|
default Locator |
Page.locator(String selector) |
The method returns an element locator that can be used to perform actions on this page / frame.
|
Locator |
Page.locator(String selector,
Page.LocatorOptions options) |
The method returns an element locator that can be used to perform actions on this page / frame.
|
Locator |
Locator.nth(int index) |
Returns locator to the n-th matching element.
|
Locator |
Locator.or(Locator locator) |
Creates a locator that matches either of the two locators.
|
Locator |
FrameLocator.owner() |
Returns a Locator object pointing to the same iframe as this frame locator.
|