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

Selenium ChromeDriver Issues: Chrome running unstable in headless mode #39

Open
helkv opened this issue Feb 12, 2019 · 0 comments
Open

Comments

@helkv
Copy link

helkv commented Feb 12, 2019

Chrome runs very unstable when headless mode is activated.
There are multiple different issues and bugs depending on: Chrome Version, ChromeDriver Version and the executed tests.

Issues and Fixes (occured so far):

  • Chrome does not start in headless mode
    • Exception:
      No informative Error message. Only a timeout exception when navigate() is called on the driver:
      org.openqa.selenium.TimeoutException: timeout
    • Fix:
      options.addArguments("--proxy-server='direct://'");
      options.addArguments("--proxy-bypass-list=*");
  • Chrome is very slow in headless mode
    • Fix:
      options.addArguments("--proxy-server='direct://'");
      options.addArguments("--proxy-bypass-list=*");
  • Chrome does not operate correctly after a certain time, when tests run very long resp. many actions are executed in one test session
    • Exception:
      ... Timed out receiving message from renderer: ...
    • Fix (not tested yet!):
      options.addArguments("--disable-browser-side-navigation");
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