3

My Selenium Java Webdriver tests are failing when they start if I don't click on the browser page that is being opened.

The following crash is caused from an ElementNotVisibleException, obviously.

This was not a big issue until now that I have to put them in a Jenkins CI machine.

Can any body help by providing possible solution or suggestion?

Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
lorenzo.urbini
  • 113
  • 1
  • 10

1 Answers1

1

For Selenium RC:

selenium.windowFocus();
selenium.windowMaximize();

For WebDriver (Selenium 2):

driver.manage().window().maximize();
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176