docs: fix locators visibility confusion

This commit is contained in:
Pavel Feldman 2021-08-16 17:41:04 -07:00
parent 99993e173b
commit 954de62502
3 changed files with 0 additions and 8 deletions

View file

@ -937,8 +937,6 @@ Returns whether the element is [visible](./actionability.md#visible). [`option:
The method returns an element locator that can be used to perform actions in the frame.
Locator is resolved to the element immediately before performing an action, so a series of actions on the same locator can in fact be performed on different DOM elements. That would happen if the DOM structure between those actions has changed.
Note that locator always implies visibility, so it will always be locating visible elements.
### param: Frame.locator.selector = %%-find-selector-%%
## method: Frame.name

View file

@ -2047,8 +2047,6 @@ Returns whether the element is [visible](./actionability.md#visible). [`option:
The method returns an element locator that can be used to perform actions on the page.
Locator is resolved to the element immediately before performing an action, so a series of actions on the same locator can in fact be performed on different DOM elements. That would happen if the DOM structure between those actions has changed.
Note that locator always implies visibility, so it will always be locating visible elements.
Shortcut for main frame's [`method: Frame.locator`].
### param: Page.locator.selector = %%-find-selector-%%

4
types/types.d.ts vendored
View file

@ -2070,8 +2070,6 @@ export interface Page {
* element immediately before performing an action, so a series of actions on the same locator can in fact be performed on
* different DOM elements. That would happen if the DOM structure between those actions has changed.
*
* Note that locator always implies visibility, so it will always be locating visible elements.
*
* Shortcut for main frame's [frame.locator(selector)](https://playwright.dev/docs/api/class-frame#frame-locator).
* @param selector A selector to use when resolving DOM element. See [working with selectors](https://playwright.dev/docs/selectors) for more details.
*/
@ -4338,8 +4336,6 @@ export interface Frame {
* The method returns an element locator that can be used to perform actions in the frame. Locator is resolved to the
* element immediately before performing an action, so a series of actions on the same locator can in fact be performed on
* different DOM elements. That would happen if the DOM structure between those actions has changed.
*
* Note that locator always implies visibility, so it will always be locating visible elements.
* @param selector A selector to use when resolving DOM element. See [working with selectors](https://playwright.dev/docs/selectors) for more details.
*/
locator(selector: string): Locator;