I am facing a problem with running
selenium testNG
test from jenkins , the problem is that i am doing a login to my application and checking some element visibility , when i run the test from the batch file directly i got a success because i'm setting my google chrome driver to maximize using:
driver.manage().window().maximize();
but if the browser is minimized some elements are not visible (front-end requirements) , so when i run the test from jenkins the test failed because i think that the browser doesn't maximized ,
can someone correct for me if i'm wrong , and some help of how to maximize the browser when running from jenkins?