所以我按照以下说明安装了appium:https://github.com/angular/protractor/blob/master/docs/mobile-setup.md
我也有一个完美的量角器测试。但是我的问题是当我启动测试时,它会启动iOS模拟器并完美地启动safari,但总是首先转到http://0.0.0.0:4723/welcome。一旦它进入,再过30秒,它进入我的测试并执行正常。更具体的问题是当它转到http://0.0.0.0:4723/welcome时,因为我在公司代理后面,页面导航到我必须手动输入的验证码页面。如果我不这样做,它就不会开始我的测试而被卡在http://0.0.0.0:4723/welcome。我甚至不知道这个网址(http://0.0.0.0:4723/welcome)的来源。我想删除第一个初始测试。我认为它在Appium中是默认的。这是我的控制台输出:
[debug] [RemoteDebugger] Received response from socket send: '["PID:29882",
{"1":{"WIRTitleKey":"Page verifica...'
[debug] [RemoteDebugger] Page changed: {"1":{"WIRTitleKey":"Page
verification","WIRTypeKey":"WIRTypeWeb","WIRURLKey":
"https://captcha.gecirtnotification.com/pitc/}}
[debug] [RemoteDebugger] Received app, but expected url
('http://0.0.0.0:4723/welcome') was not found. Trying again.
[debug] [RemoteDebugger] Found app id key 'PID:29880' for bundle
'com.apple.mobilesafari'
[debug] [RemoteDebugger] Found separate bundleId
'com.apple.WebKit.WebContent' acting as proxy for 'com.apple.mobilesafari',
with app id 'PID:29882'
[debug] [RemoteDebugger] Trying out the possible app ids: PID:29882
[debug] [RemoteDebugger] Selecting app PID:29882 (try #17 of 20)
[debug] [RemoteDebugger] Sending '_rpc_forwardGetListing:' message to remote
debugger