@@ -84,16 +84,20 @@ module.exports = {
8484}
8585```
8686
87- ## Playwright traces
87+ ## Traces
8888@qavajs support capturing playwright traces. https://playwright.dev/docs/next/trace-viewer-intro
89+ Supported events:
90+ - onFail
91+ - afterScenario
92+
8993``` typescript
9094module .exports = {
9195 default: {
9296 // ...
9397 browser: {
9498 trace: {
95- event: [' onFail' ], // Events to save trace. Possible values onFail or AfterScenario
96- dir: ' dirToStoreTraces ' , // Dir to store traces. Default is traces/
99+ event: [' onFail' ], // Events to save trace. Possible values onFail or afterScenario
100+ dir: ' traces ' , // Dir to store traces. Default is traces/
97101 attach: true // Define if trace need to be attached to cucumber report. Default false
98102 }
99103 }
@@ -103,24 +107,28 @@ module.exports = {
103107
104108## Video
105109@qavajs supports video recording. https://playwright.dev/docs/next/videos
110+ Supported events:
111+ - onFail
112+ - afterScenario
113+
106114``` typescript
107115module .exports = {
108116 default: {
109117 // ...
110118 browser: {
111119 video: {
112- event: [' onFail' ], // Events to save video. Possible value onFail or AfterScenario
113- dir: ' dirToStoreVideo ' , // Dir to store video. Default is video/
114- size: {width: 640 , height: 480 }, // Video resolution
120+ event: [' onFail' ], // Events to save video. Possible value onFail or afterScenario
121+ dir: ' video ' , // Dir to store video. Default is video/
122+ size: { width: 640 , height: 480 }, // Video resolution
115123 attach: true // Define if trace need to be attached to cucumber report. Default false
116124 }
117125 }
118126 }
119127}
120128```
121129
122- ## reuseSession
123- reuseSession flag allows to share driver session between tests. Browser will not be closed automatically after test.
130+ ## Reuse Session
131+ _ reuseSession _ flag allows to share driver session between tests. Browser will not be closed automatically after test.
124132
125133``` javascript
126134module .exports = {
@@ -727,6 +735,21 @@ Then I expect text of '#1 of Search Results' to be equal 'google'
727735Then I expect text of '#1 of Search Results' to be equal '$firstResult'
728736```
729737---
738+ ### I expect value of \{ string} \{ playwrightValidation} \{ string}
739+
740+ Verify that value of element satisfies condition
741+
742+ | param | type | description | example |
743+ | :-------------:| :------:| :--------------------------:| :-------------------------------------:|
744+ | alias | string | element to check condition | Input, Text Area |
745+ | validation | string | validation type | to be equal, to contain, not to match |
746+ | expectedValue | string | expected result | |
747+
748+ ``` gherkin
749+ Then I expect value of 'Input' to be equal 'google'
750+ Then I expect value of '#1 of Textareas' to be equal '$firstResult'
751+ ```
752+ ---
730753### I expect \{ string} property of \{ string} \{ playwrightValidation} \{ string}
731754
732755Verify that property of element satisfies condition
@@ -1127,6 +1150,23 @@ When I wait until text of 'Header' not to be equal 'Python'
11271150When I wait until text of 'Header' to be equal 'Javascript' (timeout: 3000)
11281151```
11291152---
1153+ ### I wait until value of \{ string} \{ playwrightValueWait} \{ string}( )\{ playwrightTimeout}
1154+
1155+ Wait for element value condition
1156+
1157+ | param | type | description |
1158+ | :-------:| :-----------------:| :-----------------------:|
1159+ | alias | string | element |
1160+ | wait | string | validation type |
1161+ | value | string | expected result |
1162+ | timeout | number (optional) | timeout in milliseconds |
1163+
1164+ ``` gherkin
1165+ When I wait until value of 'Input' to be equal 'Javascript'
1166+ When I wait until value of 'Input' not to be equal 'Python'
1167+ When I wait until value of 'Input' to be equal 'Javascript' (timeout: 3000)
1168+ ```
1169+ ---
11301170### I wait until number of elements in \{ string} collection \{ playwrightValueWait} \{ string}( )\{ playwrightTimeout}
11311171
11321172Wait for collection length condition
0 commit comments