Selenium & ChromeDriver: session not created, unable to connect to renderer

后端 未结 2 1344

I am trying to run automated tests via Webdriver.io, Selenium and ChromeDriver on Mac. I am using the latest versions of all involved software:

  • Selenium 3.9.1<
相关标签:
2条回答
  • 2021-01-15 04:17

    Google chrome browser is updating day by day , you should need use chrome driver exe according to which browser versions are using in our Computer please use latest chrome driver and browser versions https://chromedriver.chromium.org/downloads

    0 讨论(0)
  • 2021-01-15 04:35

    Found the solution here: https://github.com/Polymer/web-component-tester/issues/573#issuecomment-310828303

    Quote:

    Finally i got it fixed after lot of struggle. It was happening because my localhost was mapped according to new Ipv6 standard like [::1] but the selenium needed the ipv4 address like 127.0.0.1. so i had to change it using the command in my system like this :

    Open a terminal window and type this line:

    sudo open -a TextEdit /etc/hosts

    You will be prompt to type in your admin password and your host file will open in TextEdit. Add this line in your host file :

    127.0.0.1 localhost

    Save the file and close. That's it.

    (addendum: TextEdit refused to save the file for me, even as superuser, so I used sudo vim /etc/hosts instead)

    0 讨论(0)
提交回复
热议问题