File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -1376,12 +1376,16 @@ Returns **[Promise][22]<[string][9]>** title
13761376
13771377Returns 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
13861390Returns ** [ Promise] [ 22 ] < ; any>**
13871391
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments