@@ -574,6 +574,65 @@ example:
574
574
When I release 'Q' key
575
575
```
576
576
577
+ ---
578
+ ### I click {wdioBrowserButton} button
579
+
580
+ Click browser button
581
+
582
+ | param | type | description |
583
+ | :------:| :------:| :------------------------------:|
584
+ | button | string | browser button (back, forward) |
585
+ example:
586
+ ``` gherkin
587
+ When I click back button
588
+ When I click forward button
589
+ ```
590
+
591
+ ---
592
+ ### I upload {string} file by clicking {string} step by
593
+
594
+ Provide file url to file chooser
595
+
596
+ | param | type | description |
597
+ | :-----:| :------:| :---------------------------------:|
598
+ | file | string | file path or file handle |
599
+ | alias | string | element that invokes file chooser |
600
+ example:
601
+ ``` gherkin
602
+ When I upload '/folder/file.txt' by clicking 'Upload Button'
603
+ ```
604
+
605
+ ---
606
+ ### I set window size {string}
607
+
608
+ Resize browser viewport
609
+
610
+ | param | type | description |
611
+ | :------------:| :------:| :---------------------------------------------:|
612
+ | viewportSize | string | width and height in pixels separated by comma |
613
+
614
+ example:
615
+
616
+ ``` gherkin
617
+ When I set window size '1440,900'
618
+ ```
619
+
620
+ ---
621
+ ### I click {string} coordinates in {string}
622
+
623
+ Click a certain coordinate of an element
624
+
625
+ | param | type | description |
626
+ | :-----------:| :------:| :-----------------------------------:|
627
+ | coordinates | string | comma separated x and y coordinates |
628
+ | alias | string | element to click |
629
+
630
+ example:
631
+
632
+ ``` gherkin
633
+ When I click '0,20' coordinates in 'Google Button'
634
+ ```
635
+
577
636
## Validation Steps
578
637
579
638
---
@@ -975,6 +1034,23 @@ example:
975
1034
When I save screenshot of 'Element' as 'screenshot'
976
1035
```
977
1036
1037
+ ---
1038
+ ### I save bounding rect of {string} as {string}
1039
+
1040
+ Save bounding client rect to memory
1041
+ https://developer.mozilla.org/en-US/docs/Web/API/DOMRect
1042
+
1043
+ | param | type | description |
1044
+ | :-----:| :------:| :----------------------------:|
1045
+ | alias | string | element to get bounding rect |
1046
+ | key | string | key to store value |
1047
+
1048
+ example:
1049
+ ``` gherkin
1050
+ When I save bounding rect of 'Node' as 'boundingRect'
1051
+ Then I expect '$boundingRect.width' to equal '42'
1052
+ ```
1053
+
978
1054
## Wait Steps
979
1055
980
1056
---
@@ -1431,34 +1507,3 @@ example:
1431
1507
``` gherkin
1432
1508
When I close to 'browser2' browser context
1433
1509
```
1434
-
1435
- ---
1436
- ### I set window size {string}
1437
-
1438
- Resize browser viewport
1439
-
1440
- | param | type | description |
1441
- | :------------:| :------:| :---------------------------------------------:|
1442
- | viewportSize | string | width and height in pixels separated by comma |
1443
-
1444
- example:
1445
-
1446
- ``` gherkin
1447
- When I set window size '1440,900'
1448
- ```
1449
-
1450
- ---
1451
- ### I click {string} coordinates in {string}
1452
-
1453
- Click a certain coordinate of an element
1454
-
1455
- | param | type | description |
1456
- | :-----------:| :------:| :-----------------------------------:|
1457
- | coordinates | string | comma separated x and y coordinates |
1458
- | alias | string | element to click |
1459
-
1460
- example:
1461
-
1462
- ``` gherkin
1463
- When I click '0,20' coordinates in 'Google Button'
1464
- ```
0 commit comments