Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install Selenium Server manually to work with Protractor (AngularJS) from Cuba

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
like image 887
lmgonzalves Avatar asked May 18 '15 20:05

lmgonzalves


People also ask

How to install Selenium server manually using protractor?

For installing and starting Selenium server manually, we need to use WebDriver-Manager command line tool that comes with Protractor. The steps for installing and starting Selenium server are as follows − Step 1 − The first step is to install the Selenium server and ChromeDriver. It can be done with the help of running following command −

How to install protractor in Linux?

So, now we can install protractor (also any Node.js packages) using node commands. Open command prompt and type npm install –g protractor to install it globally. Here, we used ‘-g’ to install protractor globally to run protractor from anywhere in the system.

How to setup protractor with Node JS?

To setup Protractor, we need to follow the following steps. Install Node.js Download and install node.js. Just follow installation guidelines and that is it. Once the file is downloaded, open the downloaded file to start installing Node.JS Select the check box to “ I accept the terms in the License Agreement ” and click on Next to proceed.

Is it possible to use protractor with webdriverjs?

And, at the same time, you can still use everything available in WebDriverJS- e.g. browseris Protractor's wrapper around a driver object, but you can get the underlying driver from WebDriverJSby accessing browser.driver


1 Answers

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

like image 95
Saifur Avatar answered Nov 15 '22 21:11

Saifur