9

I am developing an AngularJS app, and I like to test it with Protractor (e2e test). I am following this excelent guide, but I am stuck in step 5 (Download and start the selenium server), because a live in Cuba and when I try to install the Selenium Server I get a 403 Error (this is for political problems, to not go into details).

And the question is how to install it manually or in another way. Regards, hoping someone can help me.

Edit:

When I run node_modules/protractor/bin/webdriver-manager update I get (relevant part):

downloading https://chromedriver.storage.googleapis.com/2.14/chromedriver_linux64.zip...
Error: Got code 403 from https://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar
selenium-server-standalone-2.45.0.jar downloaded to /webapps/webvisor/client/node_modules/protractor/selenium/selenium-server-standalone-2.45.0.jar
Error: Got code 403 from https://chromedriver.storage.googleapis.com/2.14/chromedriver_linux64.zip
chromedriver_2.14.zip downloaded to /webapps/webvisor/client/node_modules/protractor/selenium/chromedriver_2.14.zip
Community
  • 1
  • 1
lmgonzalves
  • 6,518
  • 3
  • 22
  • 41

2 Answers2

4

I think you are able to download and install Protractor at least. If so, you should be able to run them manually on the console

webdriver-manager update
webdriver-manager start

I have a step by step tutorial here

Saifur
  • 16,081
  • 6
  • 49
  • 73
  • I think @Saifur is referring to [Selenium WebDrivers.](http://www.seleniumhq.org/projects/webdriver/) – Shotgun Ninja May 18 '15 at 21:28
  • 2
    You can typically use `FirefoxDriver` or `HtmlUnitDriver` out of the box, so long as you have Firefox installed on the host computer. However, using `ChromeDriver` in your code, for example, requires chrodriver.exe to be installed. – Shotgun Ninja May 18 '15 at 21:29
1

I think you should use a proxy with webdriver-manager (nodejs behind).

Set a proxy (to bypass limitation):

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

Then retry to update:

webdriver-manager update
webdriver-manager start

Another way is to use a VPN to bypass the limitation.

Nicolas Pennec
  • 7,533
  • 29
  • 43
  • Thank you for your answer, I considere it for future related issues. For now, download the driver from another way and put in detinated folder work. – lmgonzalves May 19 '15 at 12:59