Skip to content

Commit 1bd3653

Browse files
authored
fix: wrong format docs (#4330)
1 parent 4ba4d27 commit 1bd3653

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

docs/helpers/Playwright.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -1376,12 +1376,16 @@ Returns **[Promise][22]<[string][9]>** title
13761376

13771377
Returns full URL of request matching parameter "urlMatch".
13781378

1379+
Examples:
1380+
1381+
```js
1382+
I.grabTrafficUrl('https://api.example.com/session');
1383+
I.grabTrafficUrl(/session.*start/);
1384+
```
1385+
13791386
#### Parameters
13801387

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

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

lib/helper/Playwright.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3115,15 +3115,14 @@ class Playwright extends Helper {
31153115
/**
31163116
* Returns full URL of request matching parameter "urlMatch".
31173117
*
3118-
* @param {string|RegExp} urlMatch Expected URL of request in network traffic. Can be a string or a regular expression.
3119-
*
31203118
* Examples:
31213119
*
31223120
* ```js
31233121
* I.grabTrafficUrl('https://api.example.com/session');
31243122
* I.grabTrafficUrl(/session.*start/);
31253123
* ```
31263124
*
3125+
* @param {string|RegExp} urlMatch Expected URL of request in network traffic. Can be a string or a regular expression.
31273126
* @return {Promise<*>}
31283127
*/
31293128
grabTrafficUrl(urlMatch) {

0 commit comments

Comments
 (0)