Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to Maximize browser when running through Jenkins as windows service

When running test script through windows , am unable to maximize the browser window due to which the scripts are getting failed ,

tried all possible ways as mentioned in this thread , but no use Unable to Set Size (Increase Size) for Chrome Browser through Selenium in Jenkins?

Is there way to maximize the window ?? any help is appreciated. Thanks in advance.

like image 957
Rahul Avatar asked Nov 27 '25 15:11

Rahul


1 Answers

I had a problem similar to this when using Jenkins to run automated tests. It was to do with the interactive service detection.

The only way I could seem to fix this was to remove Jenkins as a windows service, and have it run from the CMD using a sciprt.

like image 62
colin Avatar answered Nov 30 '25 05:11

colin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!