[Serenity BDD reporter] - Is there a way to reduce the size of the screenshot generated by serenity BDD reporter #1635
Replies: 3 comments
-
Hi @enliltom004, the size of the screenshot depends on its resolution, and its resolution depends on the size of the browser window. Depending on the cloud platform you use, browser window size might need to be configured differently so its best to check the documentation of the platform you use. In most cases, you'll need to specify window size as part of your WebdriverIO configuration {
browserName: 'chrome',
'goog:chromeOptions': {
args: [ 'window-size=1920,1080' ],
}
} Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hi @jan-molak , Thank you for your reply . Unfortunately the issue is with mobile browsers , and the platform wont allow custom resolution for mobile browsers . |
Beta Was this translation helpful? Give feedback.
-
Hi @enliltom004 and thanks for explaining. Could you advise what platform you're using and what's your WebdriverIO configuration around browser capabilities? |
Beta Was this translation helpful? Give feedback.
-
Having issues taking screenshot of a test which is running in a cloud platform . It shows the image is too large and it cannot process it .
Can we pass any other settings to reduce the image size .
Framework : wdio/serenity
Node : 16.16.0
"@serenity-js/serenity-bdd": "^2.33.10",
Beta Was this translation helpful? Give feedback.
All reactions