Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move to Locator playwright #3738

Merged
merged 20 commits into from
Aug 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions docs/helpers/Playwright.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ const elements = await this.helpers['Playwright']._locate({name: 'password'});

### _locateCheckable

Find a checkbox by providing human readable text:
Find a checkbox by providing human-readable text:
NOTE: Assumes the checkable element exists

```js
Expand All @@ -313,7 +313,7 @@ this.helpers['Playwright']._locateCheckable('I agree with terms and conditions')

### _locateClickable

Find a clickable element by providing human readable text:
Find a clickable element by providing human-readable text:

```js
this.helpers['Playwright']._locateClickable('Next page').then // ...
Expand All @@ -323,9 +323,22 @@ this.helpers['Playwright']._locateClickable('Next page').then // ...

- `locator`

### _locateElement

Get the first element by different locator types, including strict locator
Should be used in custom helpers:

```js
const element = await this.helpers['Playwright']._locateElement({name: 'password'});
```

#### Parameters

- `locator`

### _locateFields

Find field elements by providing human readable text:
Find field elements by providing human-readable text:

```js
this.helpers['Playwright']._locateFields('Your email').then // ...
Expand Down
Loading