Selenium webdriver exits with error code 135

前端 未结 9 1293
北海茫月
北海茫月 2021-02-07 08:56

I am new to protractor. I am getting the following error while trying to run Selenium tests using protractor

I/hosted - Using the selenium server at http://local         


        
相关标签:
9条回答
  • 2021-02-07 09:19

    The directConnect solution is nice when running protractor locally, but it didn't work when trying to do it on Jenkins. It seems like when running everything in Docker containers in Jenkins, you'll have to start webdriver-manager start in detached mode -d first, wait, and then start protractor.

    0 讨论(0)
  • 2021-02-07 09:21

    It seems like selenium server is not running on http://127.0.0.1:4444/wd/hub. Before running your protractor test,you must start the selenium server using below command.webdriver-manager start. After starting the server your tests will execute without any errors.

    If you dont want to start selenium server manually,then just remove seleniumAddress:http://localhost:4444/wd/hub property from your conf.js.

    0 讨论(0)
  • 2021-02-07 09:21

    I have run the windows command prompt as administrator and solved this problem. I am not seeing this problem anymore. And I added also

    chromeOnly: true,
    directConnect: true,
    
    0 讨论(0)
提交回复
热议问题