您的位置:首页 > 其它

protractor installation problems on Windows 2012 Server

2017-04-18 15:39 656 查看
Error 1.  Can't download chrome

Solution: Local Server -> PROPERTIES -> IE Enhanced Security Configuration 

                 Set Off from On as below;






[b]Error 2.  connect ETIMEDOUT when run "webdriver-manager
update" cmd[/b]

C:\Users\$jich004\Desktop\e2e>webdriver-manager
update

[09:51:53] I/file_manager
- creating folder C:\Users\$jich004\AppData\Roaming\np
m\node_modules\protractor\node_modules\webdriver-manager\selenium
events.js:160
      throw er; //
Unhandled 'error' event
      ^

Error: connect
ETIMEDOUT 172.217.6.176:443

    at Object.exports._errnoException
(util.js:1018:11)
    at exports._exceptionWithHostPort
(util.js:1041:20)
    at TCPConnectWrap.afterConnect
[as oncomplete] (net.js:1090:14)
Solution: 


set PROXY=http://web-proxy.corp.hp.com:8080

set HTTP_PROXY=%PROXY%

set HTTPS_PROXY=%PROXY% 

Error 3. Intsall node TIMEOUT

Solution: Set proxy by the file C:\Users\$jich004\.npmrc as follow

proxy=http://web-proxy.corp.hp.com:8080/

https-proxy=http://web-proxy.corp.hp.com:8080/

strict-ssl=false

Error 4. 'java' is not recognized as an internal or external command

C:\Users\$jich004\Desktop\e2e>webdriver-manager start

[02:21:42] I/start - java -Dwebdriver.chrome.driver=C:\Users\$jich004\AppData\R

aming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\chrom

driver_2.29.exe -Dwebdriver.gecko.driver=C:\Users\$jich004\AppData\Roaming\npm\

ode_modules\protractor\node_modules\webdriver-manager\selenium\geckodriver-v0.1

.0.exe -jar C:\Users\$jich004\AppData\Roaming\npm\node_modules\protractor\node_

odules\webdriver-manager\selenium\selenium-server-standalone-3.3.1.jar -port 44

4

[02:21:42] I/start - seleniumProcess.pid: 10996

'java' is not recognized as an internal or external command,

Solution: Install jre  and set JAVA_HOME and add java folder to path

on win 2012 server , This PC -> system properties -> Advanced system settings -> Environment Variables

JAVA_HOME = ‪C:\Program Files\Java\jre1.8.0_121

PATH = C:\Users\$jich004\AppData\Roaming\npm;%JAVA_HOME%\bin

Error 5. can't find conf.js when run "webdrive-manager start" cmd

Solution: change conf.js.txt to conf.js

the way show extensions on win 2012: View -> File name extensions

Error 6.  local and remote can't communication

Right click Local Computer -> Map Network Driver ->input folder [\\*.itcs.hpecorp.net\f$]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: