File tree Expand file tree Collapse file tree 2 files changed +38
-2
lines changed Expand file tree Collapse file tree 2 files changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,24 @@ example:
393
393
When I scroll by '0, 100' in 'Overflow Container'
394
394
```
395
395
396
+ _________________________
397
+ ### I define {string} as {string} {playwrightPoType}
398
+
399
+ Register selector as page object
400
+
401
+ | param | type | description |
402
+ | :-----------:| :------:| :-----------------------------------------:|
403
+ | selectorKey | string | selector to register |
404
+ | aliasKey | string | alias of element |
405
+ | poType | string | type of page object (element, collection) |
406
+ example:
407
+ ``` gherkin
408
+ When I define '#someId' as 'My Button' element
409
+ And I click 'My Button'
410
+ When I define 'li.selected' as 'Selected Items' collection
411
+ And I expect number of element in 'Selected Items' collection to equal '3'
412
+ ```
413
+
396
414
## Validation Steps
397
415
398
416
---
Original file line number Diff line number Diff line change @@ -379,15 +379,15 @@ example:
379
379
``` gherkin
380
380
When I scroll by '0, 100' in 'Overflow Container'
381
381
```
382
-
382
+ _________________________
383
383
### I accept alert
384
384
385
385
Accepts an alert
386
386
387
387
``` gherkin
388
388
When I accept alert
389
389
```
390
-
390
+ _________________________
391
391
### I dismiss alert
392
392
393
393
Dismisses an alert
@@ -410,6 +410,24 @@ When I type 'not a good practice' to alert
410
410
When I type 'nowadays' to alert
411
411
```
412
412
413
+ _________________________
414
+ ### I define {string} as {string} {wdioPoType}
415
+
416
+ Register selector as page object
417
+
418
+ | param | type | description |
419
+ | :-----------:| :------:| :-----------------------------------------:|
420
+ | selectorKey | string | selector to register |
421
+ | aliasKey | string | alias of element |
422
+ | poType | string | type of page object (element, collection) |
423
+ example:
424
+ ``` gherkin
425
+ When I define '#someId' as 'My Button' element
426
+ And I click 'My Button'
427
+ When I define 'li.selected' as 'Selected Items' collection
428
+ And I expect number of element in 'Selected Items' collection to equal '3'
429
+ ```
430
+
413
431
## Validation Steps
414
432
415
433
---
You can’t perform that action at this time.
0 commit comments