Appium:在iOS结果的webview上下文中单击以双击

时间:2015-09-05 01:37:31

标签: selenium-webdriver appium

我在iOS上的webview上下文中遇到了点击操作的问题。点击有效但单击操作导致双击。我可以判断的结果是生成的动作执行了2次,例如:点击按钮显示弹出警报,当点击执行警报时显示2次。

系统: - Mac / OSX,Appium v​​1.4.10,iPhone 6 8.1 sim

Appium日志快照:取自在Web视图上下文中执行点击操作的位置

nfo: --> POST /wd/hub/session/6e51e9be-4b04-4557-ada0-e2c4a57dcf7c/element {"using":"xpath","value":"//i[contains(@class,'icon-play')]/parent::a"}
info: [debug] Waiting up to 100ms for condition
info: [debug] [REMOTE] Executing 'find_element' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"5006"},"sessionId":"6e51e9be-4b04-4557-ada0-e2c4a57dcf7c"}
info: <-- POST /wd/hub/session/6e51e9be-4b04-4557-ada0-e2c4a57dcf7c/element 200 11.588 ms - 90 {"status":0,"value":{"ELEMENT":"5006"},"sessionId":"6e51e9be-4b04-4557-ada0-e2c4a57dcf7c"}
info: --> GET /wd/hub/session/6e51e9be-4b04-4557-ada0-e2c4a57dcf7c/element/5006/displayed {}
info: [debug] [REMOTE] Executing 'is_displayed' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"6e51e9be-4b04-4557-ada0-e2c4a57dcf7c"}
info: <-- GET /wd/hub/session/6e51e9be-4b04-4557-ada0-e2c4a57dcf7c/element/5006/displayed 200 13.478 ms - 76 {"status":0,"value":true,"sessionId":"6e51e9be-4b04-4557-ada0-e2c4a57dcf7c"}
info: --> POST /wd/hub/session/6e51e9be-4b04-4557-ada0-e2c4a57dcf7c/element/5006/click {"id":"5006"}
info: [debug] [REMOTE] Executing 'click' atom in default context
info: [debug] [REMOTE] Sending javascript command
info: [debug] [REMOTE] Sending _rpc_forwardSocketData: message to remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] [REMOTE] Got a blank data response from debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"6e51e9be-4b04-4557-ada0-e2c4a57dcf7c"}
info: <-- POST /wd/hub/session/6e51e9be-4b04-4557-ada0-e2c4a57dcf7c/element/5006/click 200 62.000 ms - 76 {"status":0,"value":null,"sessionId":"6e51e9be-4b04-4557-ada0-e2c4a57dcf7c"}
info: [debug] [REMOTE] Receiving data from remote debugger
info: [debug] [REMOTE] got applicationSentData response
info: [debug] [REMOTE] Got a blank data response from debugger
info: --> GET /wd/hub/session/6e51e9be-4b04-4557-ada0-e2c4a57dcf7c/context {}
info: [debug] Responding to client with success: {"status":0,"value":"WEBVIEW_17","sessionId":"6e51e9be-4b04-4557-ada0-e2c4a57dcf7c"}
info: <-- GET /wd/hub/session/6e51e9be-4b04-4557-ada0-e2c4a57dcf7c/context 200 0.654 ms - 84 {"status":0,"value":"WEBVIEW_17","sessionId":"6e51e9be-4b04-4557-ada0-e2c4a57dcf7c"}
info: --> POST /wd/hub/session/6e51e9be-4b04-4557-ada0-e2c4a57dcf7c/context {"name":"NATIVE_APP"}
info: [debug] Attempting to set context to 'NATIVE_APP'
info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"6e51e9be-4b04-4557-ada0-e2c4a57dcf7c"}
info: <-- POST /wd/hub/session/6e51e9be-4b04-4557-ada0-e2c4a57dcf7c/context 200 1.138 ms - 74 {"status":0,"value":"","sessionId":"6e51e9be-4b04-4557-ada0-e2c4a57dcf7c"}
info: --> GET /wd/hub/session/6e51e9be-4b04-4557-ada0-e2c4a57dcf7c/context {}
info: [debug] Responding to client with success: {"status":0,"value":"NATIVE_APP","sessionId":"6e51e9be-4b04-4557-ada0-e2c4a57dcf7c"}
info: <-- GET /wd/hub/session/6e51e9be-4b04-4557-ada0-e2c4a57dcf7c/context 200 0.640 ms - 84 {"status":0,"value":"NATIVE_APP","sessionId":"6e51e9be-4b04-4557-ada0-e2c4a57dcf7c"}
info: --> POST /wd/hub/session/6e51e9be-4b04-4557-ada0-e2c4a57dcf7c/elements {"using":"name","value":"Video Ad Player"}
info: [debug] Waiting up to 100ms for condition
info: [debug] Pushing command to appium work queue: "au.getElementsByName('Video Ad Player')"
info: [debug] Sending command to instruments: au.getElementsByName('Video Ad Player')
info: [debug] [INST] 2015-09-05 01:14:07 +0000 Debug: Got new command 220 from instruments: au.getElementsByName('Video Ad Player')
info: [debug] Socket data received (25 bytes)
info: [debug] Socket data being routed.
i

0 个答案:

没有答案