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');
1266
1266
1267
1267
Returns **[Promise][14]<[Array][16]<[string][6]>>** attribute value
1268
1268
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
+
1269
1284
### grabWebElements
1270
1285
1271
1286
Grab 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');
1411
1411
1412
1412
Returns **[Promise][26]<[Array][29]<[string][18]>>** attribute value
1413
1413
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
+
1414
1429
### grabWebElements
1415
1430
1416
1431
Grab WebElements for given locator
You can’t perform that action at this time.
0 commit comments