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
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
You can also add these lines to your conf.js
file:
chromeOnly: true,
directConnect: true,
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
webdriver-manager update --standalone
Solution 2
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
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
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.