Selenium webdriver exits with error code 135

前端 未结 9 1292
北海茫月
北海茫月 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:05

    Start the webdriver, its good to update the web driver and start the web driver before you start executing your automation test suite by executing the below commands in console screen.

    webdriver-manager update
    webdriver-manager start
    
    0 讨论(0)
  • 2021-02-07 09:10

    You can also add these lines to your conf.js file:

    chromeOnly: true,
    directConnect: true,
    
    0 讨论(0)
  • 2021-02-07 09:12

    Did you start selenium server using this command webdriver-manager start? If not there might be a problem with your configuration with selenium server. I would suggest follow this thread

    Solution 1

    1. try webdriver-manager update --standalone

    Solution 2

    1. Remove previous instance (.jar file) of web driver from the location- C:\Users\HP\AppData\Roaming\npm\node_modules\p rotractor\selenium
    2. Download the selenium-server-standalone-2.45.0 from http://www.seleniumhq.org/download/ and replace the .jar file.
    0 讨论(0)
  • 2021-02-07 09:12

    i also get this type of error, but after set environment variables this issue is solved. location of the npm; Example: C:\Users\AppData\Roaming\npm

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

    check your web driver status by the below command

     webdriver-manager status
    

    if it's not up to date you can remove and install it by following these steps

     webdriver-manager clean
     webdriver-manager status
     webdriver-manager update
     webdriver-manager start
    

    then start your web driver by

    if you get this error

       ERROR [BaseServer.start] - Port 4444 is busy, please choose a free port and specify it using -port option
    

    you can set another port by this command(for example port 4545)

     webdriver-manager start --seleniumPort 4545
    

    then your selenium web driver will run

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

    Do you have selenium drivers installed for the browser you want to test with? Try with

    webdriver-manager update
    

    It will take care of installing the drivers for you. You just need to run it once, if you call it again it will see that the drivers are already installed and will not procede.

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