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).
我正在开发一个AngularJS应用程序,我喜欢用量角器(e2e test)进行测试。我正在遵循这个精益求精的指南,但是我被困在第5步(下载并启动selenium服务器)中,因为一个在古巴的live服务器,当我尝试安装selenium服务器时,我得到了一个403错误(这是针对政治问题的,不深入细节)。
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):
当我运行node_modules/ pro拖拉机/bin/webdriver-manager更新时,我得到(相关部分):
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
2 个解决方案
#1
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
我这里有一个循序渐进的教程。
#2
1
I think you should use a proxy with webdriver-manager (nodejs behind).
我认为您应该使用webdriver-manager (nodejs后面)的代理。
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.
另一种方法是使用VPN绕过限制。
#1
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
我这里有一个循序渐进的教程。
#2
1
I think you should use a proxy with webdriver-manager (nodejs behind).
我认为您应该使用webdriver-manager (nodejs后面)的代理。
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.
另一种方法是使用VPN绕过限制。