File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -1266,6 +1266,21 @@ let inputs = await I.grabValueFromAll('//form/input');
12661266
12671267Returns **[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
12711286Grab WebElements for given locator
Original file line number Diff line number Diff line change @@ -1411,6 +1411,21 @@ let inputs = await I.grabValueFromAll('//form/input');
14111411
14121412Returns **[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
14161431Grab WebElements for given locator
You can’t perform that action at this time.
0 commit comments