docs: fix locators visibility confusion
This commit is contained in:
parent
99993e173b
commit
954de62502
|
|
@ -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.
|
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.
|
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-%%
|
### param: Frame.locator.selector = %%-find-selector-%%
|
||||||
|
|
||||||
## method: Frame.name
|
## method: Frame.name
|
||||||
|
|
|
||||||
|
|
@ -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.
|
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.
|
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`].
|
Shortcut for main frame's [`method: Frame.locator`].
|
||||||
|
|
||||||
### param: Page.locator.selector = %%-find-selector-%%
|
### param: Page.locator.selector = %%-find-selector-%%
|
||||||
|
|
|
||||||
4
types/types.d.ts
vendored
4
types/types.d.ts
vendored
|
|
@ -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
|
* 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.
|
* 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).
|
* 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.
|
* @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
|
* 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
|
* 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.
|
* 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.
|
* @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;
|
locator(selector: string): Locator;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue