0

I'm running Cucumber with Selenium using Junit4. Testing a war based website with a chrome browser.

I'm facing this problems:

  1. WaitForPageToLoad seems not wait for the page to load

  2. WebDriverWait - Always waits the full time of the timeout parameter given, even if the ExpectedConditions was validated sooner.

for example:

new WebDriverWait( DefaultDriver.getWebDriver(), 4 ).until( ExpectedConditions.visibilityOfElementLocated( locator.getBy() ) );

  1. WebElement.findElement - doesn't wait at all for the element to be visible

The result is that the scenario next step, fails on validating the elements are visible.

Any idea what might be the issue?

Additional info: cucumber-junit-1.2.5, cucumber-jvm-deps-1.0.5, selenium-3.4.0, selenium-chrome-driver-3.4.0

Marit
  • 2,399
  • 18
  • 27
Avi Rosenfeld
  • 305
  • 3
  • 7
  • 19

0 Answers0