Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asynchronous script timeout with Highcharts #71

Open
fabian-we opened this issue Feb 9, 2018 · 0 comments
Open

Asynchronous script timeout with Highcharts #71

fabian-we opened this issue Feb 9, 2018 · 0 comments

Comments

@fabian-we
Copy link

We use Angular 5.1 with the angular2-highcharts package. We do our tests with Selenium v3.9.0 and Protractor.net v0.11.0.

As soon as the tests navigate to a page which contains a highchart, I get the WebDriverTimeoutException.
So we
So we perform:
element.MoveAndClick();
to click a button and navigate to the next page (with the chart). Then we do the WaitForAngular:
((NgWebDriver)driver).WaitForAngular();
That's where the exception occurs:

OpenQA.Selenium.WebDriverTimeoutException: 'asynchronous script timeout: result was not received in 10 seconds
  (Session info: chrome=64.0.3282.140)
  (Driver info: chromedriver=2.35.528161 (5b82f2d2aae0ca24b877009200ced9065a772e73),platform=Windows NT 10.0.16299 x86_64)'
------------
WebDriver.dll!OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(OpenQA.Selenium.Remote.Response errorResponse)	
WebDriver.dll!OpenQA.Selenium.Remote.RemoteWebDriver.Execute(string driverCommandToExecute, System.Collections.Generic.Dictionary<string, object> parameters)	
WebDriver.dll!OpenQA.Selenium.Remote.RemoteWebDriver.ExecuteScriptCommand(string script, string commandName, object[] args)	
Protractor.dll!Protractor.NgWebDriver.WaitForAngular()	

If I remove the highcharts from my page, the tests work flawlessly.

If I set IgnoreSynchronization of the NgWebDriver to true and do the waiting myself, it will work. But when it's set to false again the next interaction with the page (e.g. FindElement) will fail with the same error, even if no more charts are visible.

This happens with Chrome and Internet Explorer 11.

Can I supply any more information to locate the problem?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant