Skip to content

Commit 75d98de

Browse files
committed
DOC: Autogenerate and update documentation
1 parent 0797716 commit 75d98de

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

docs/helpers/Puppeteer.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,21 @@ let inputs = await I.grabValueFromAll('//form/input');
12661266
12671267
Returns **[Promise][14]<[Array][16]<[string][6]>>** attribute value
12681268
1269+
### grabWebElement
1270+
1271+
Grab WebElement for given locator
1272+
Resumes test execution, so **should be used inside an async function with `await`** operator.
1273+
1274+
```js
1275+
const webElement = await I.grabWebElement('#button');
1276+
```
1277+
1278+
#### Parameters
1279+
1280+
* `locator` **([string][6] | [object][4])** element located by CSS|XPath|strict locator.
1281+
1282+
Returns **[Promise][14]<any>** WebElement of being used Web helper
1283+
12691284
### grabWebElements
12701285
12711286
Grab WebElements for given locator

docs/helpers/WebDriver.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,6 +1411,21 @@ let inputs = await I.grabValueFromAll('//form/input');
14111411
14121412
Returns **[Promise][26]<[Array][29]<[string][18]>>** attribute value
14131413
1414+
### grabWebElement
1415+
1416+
Grab WebElement for given locator
1417+
Resumes test execution, so **should be used inside an async function with `await`** operator.
1418+
1419+
```js
1420+
const webElement = await I.grabWebElement('#button');
1421+
```
1422+
1423+
#### Parameters
1424+
1425+
* `locator` **([string][18] | [object][17])** element located by CSS|XPath|strict locator.
1426+
1427+
Returns **[Promise][26]<any>** WebElement of being used Web helper
1428+
14141429
### grabWebElements
14151430
14161431
Grab WebElements for given locator

0 commit comments

Comments
 (0)