Skip to content

fix: template string format error in doc #4071

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

Closed
wants to merge 1 commit into from
Closed
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
38 changes: 24 additions & 14 deletions docs/helpers/Playwright.md
Original file line number Diff line number Diff line change
Expand Up @@ -592,13 +592,17 @@ I.click({css: 'nav a.login'});

- `locator` **([string][9] | [object][6])** clickable link or button located by text, or any element located by CSS|XPath|strict locator.
- `context` **([string][9]? | [object][6] | null)** (optional, `null` by default) element to search in CSS|XPath|Strict locator.
- `options` **any?** [Additional options][18] for click available as 3rd argument.Examples:```js
// click on element at position
I.click('canvas', '.model', { position: { x: 20, y: 40 } })
- `options` **any?** [Additional options][18] for click available as 3rd argument.

// make ctrl-click
I.click('.edit', null, { modifiers: ['Ctrl'] } )
```
Examples:

```js
// click on element at position
I.click('canvas', '.model', { position: { x: 20, y: 40 } })

// make ctrl-click
I.click('.edit', null, { modifiers: ['Ctrl'] } )
```

Returns **void** automatically synchronized promise through #recorder

Expand Down Expand Up @@ -1351,10 +1355,14 @@ Returns full URL of request matching parameter "urlMatch".

#### Parameters

- `urlMatch` **([string][9] | [RegExp][11])** Expected URL of request in network traffic. Can be a string or a regular expression.Examples:```js
I.grabTrafficUrl('https://api.example.com/session');
I.grabTrafficUrl(/session.*start/);
```
- `urlMatch` **([string][9] | [RegExp][11])** Expected URL of request in network traffic. Can be a string or a regular expression.

Examples:

```js
I.grabTrafficUrl('https://api.example.com/session');
I.grabTrafficUrl(/session.*start/);
```

Returns **[Promise][22]<any>**

Expand Down Expand Up @@ -1682,10 +1690,12 @@ First parameter can be set to `maximize`.

Returns **void** automatically synchronized promise through #recorderUnlike other drivers Playwright changes the size of a viewport, not the window!
Playwright does not control the window of a browser so it can't adjust its real size.
It also can't maximize a window.Update configuration to change real window size on start:```js
// inside codecept.conf.js
// @codeceptjs/configure package must be installed
{ setWindowSize } = require('@codeceptjs/configure');
It also can't maximize a window.Update configuration to change real window size on start:

```js
// inside codecept.conf.js
// @codeceptjs/configure package must be installed
{ setWindowSize } = require('@codeceptjs/configure');
```

### restartBrowser
Expand Down