serenity-bdd / serenity-cucumber

Cucumber integration for the Serenity BDD Reporting library
Other
78 stars 74 forks source link

Serenity + Cucumber + IE 11 #136

Closed vi123ch closed 6 years ago

vi123ch commented 6 years ago

Hello,

I am trying to do my tests using Selenium grid and one of the test is lengthy to perform. But for some reason, the browser gets closed in between. Being a lengthy test case its difficult to debug and check where and why there is a failure. Could you please help me!!! Thanks in advance

wakaleo commented 6 years ago

This is most likely IE or the webdriver binary crashing - generally unrelated to the Selenium or Serenity code. If you have any log messages you can share them with the IE Webdriver community who might be able to help.

vi123ch commented 6 years ago

Hello, My error is this, functionorg.openqa.selenium.JavascriptException: JavaScript error. I am using a function for pageload which is this, public void waitForPageLoad(WebDriver driver) { try { Wait wait = new WebDriverWait(driver, 40); wait.until(new Function<WebDriver, Boolean>() { @Override public Boolean apply(WebDriver driver) { return String.valueOf(((JavascriptExecutor) driver).executeScript("return document.readyState")) .equals("complete"); } }); } catch (Exception e) { logger.warn(e); } }

Any help !!!

wakaleo commented 6 years ago

As far as I can see this is not a Serenity defect (Selenium is just reporting a JS error from the browser) so it would be better to post it on https://serenity-bdd.rocket.chat