Skip to content

Commit

Permalink
fix: wrong format docs (#4330)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed May 1, 2024
1 parent 4ba4d27 commit 1bd3653
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 8 additions & 4 deletions docs/helpers/Playwright.md
Original file line number Diff line number Diff line change
Expand Up @@ -1376,12 +1376,16 @@ Returns **[Promise][22]<[string][9]>** title

Returns full URL of request matching parameter "urlMatch".

Examples:

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

#### 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.

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

Expand Down
3 changes: 1 addition & 2 deletions lib/helper/Playwright.js
Original file line number Diff line number Diff line change
Expand Up @@ -3115,15 +3115,14 @@ class Playwright extends Helper {
/**
* Returns full URL of request matching parameter "urlMatch".
*
* @param {string|RegExp} urlMatch 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/);
* ```
*
* @param {string|RegExp} urlMatch Expected URL of request in network traffic. Can be a string or a regular expression.
* @return {Promise<*>}
*/
grabTrafficUrl(urlMatch) {
Expand Down

0 comments on commit 1bd3653

Please sign in to comment.