Hi,
I am running selenium test in bamboo elastic agent (windows). The viewport size is 1040 * 784. I just need to increase the screen resolution. Is it possible to set screen resolution as part of AMI?
Hi Venkateswari,
You can increase this as part of your code. What language are you using for testing?
I am using java. I want to increase screen resolution.
Try
<span>driver</span><span>.</span><span>manage</span><span>().</span><span>window</span><span>().</span><span>setSize</span><span>(</span><span>new</span> <span>Dimension</span><span>(</span><span>1024</span><span>,</span> <span>768</span><span>))</span>
Since the maximum screen resolution is low, using the above won't increase viewport size beyond screen resolution.
Running in chrome headless is working fine.
Hello,
can somebody answer to last question please:
"What if headless is not suitable option?"
It looks like you're new here. Sign in or register to get started.