I'm running Cucumber with Selenium using Junit4. Testing a war based website with a chrome browser.
I'm facing this problems:
WaitForPageToLoad
seems not wait for the page to loadWebDriverWait
- 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() ) );
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