@lindalaugh 好的,谢谢
@hengfan
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[@text='发现']","context":"","multiple":false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[@text='发现']","context":"","multiple":false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[@text='发现']' using 'XPATH' with the contextId: '' multiple: false
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[CLASS=android.widget.TextView, INSTANCE=2]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"1"}}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.findElement() result: {"ELEMENT":"1"}
[HTTP] <-- POST /wd/hub/session/7a8f2350-fb71-40d4-ad52-dcc20387aeb9/element 200 438 ms - 87
[HTTP] --> POST /wd/hub/session/7a8f2350-fb71-40d4-ad52-dcc20387aeb9/element/1/click {"id":"1","sessionId":"7a8f2350-fb71-40d4-ad52-dcc20387aeb9"}
[debug] [MJSONWP] Calling AppiumDriver.click() with args: ["1","7a8f2350-fb71-40d4-ad52-dcc20387aeb9"]
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"1"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"1"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.click() result: true
[HTTP] <-- POST /wd/hub/session/7a8f2350-fb71-40d4-ad52-dcc20387aeb9/element/1/click 200 1360 ms - 76
[HTTP] --> POST /wd/hub/session/7a8f2350-fb71-40d4-ad52-dcc20387aeb9/element {"using":"xpath","value":"//android.widget.TextView[@text='小程序']","sessionId":"7a8f2350-fb71-40d4-ad52-dcc20387aeb9"}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.TextView[@text='小程序']","7a8f2350-fb71-40d4-ad52-dcc20387aeb9"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[@text='小程序']","context":"","multiple":false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[@text='小程序']","context":"","multiple":false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[@text='小程序']' using 'XPATH' with the contextId: '' multiple: false
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[CLASS=android.widget.TextView, INSTANCE=12]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"2"}}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.findElement() result: {"ELEMENT":"2"}
[HTTP] <-- POST /wd/hub/session/7a8f2350-fb71-40d4-ad52-dcc20387aeb9/element 200 211 ms - 87
[HTTP] --> POST /wd/hub/session/7a8f2350-fb71-40d4-ad52-dcc20387aeb9/element/2/click {"id":"2","sessionId":"7a8f2350-fb71-40d4-ad52-dcc20387aeb9"}
[debug] [MJSONWP] Calling AppiumDriver.click() with args: ["2","7a8f2350-fb71-40d4-ad52-dcc20387aeb9"]
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"2"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"2"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.click() result: true
[HTTP] <-- POST /wd/hub/session/7a8f2350-fb71-40d4-ad52-dcc20387aeb9/element/2/click 200 154 ms - 76
[HTTP] --> POST /wd/hub/session/7a8f2350-fb71-40d4-ad52-dcc20387aeb9/element {"using":"xpath","value":"//android.widget.TextView[@text='美团外卖 +']","sessionId":"7a8f2350-fb71-40d4-ad52-dcc20387aeb9"}
[debug] [MJSONWP] Calling AppiumDriver.findElement() with args: ["xpath","//android.widget.TextView[@text='美团外卖 +']","7a8f2350-fb71-40d4-ad52-dcc20387aeb9"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[@text='美团外卖 +']","context":"","multiple":false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.TextView[@text='美团外卖 +']","context":"","multiple":false}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: find
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Finding '//android.widget.TextView[@text='美团外卖 +']' using 'XPATH' with the contextId: '' multiple: false
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Using: UiSelector[CLASS=android.widget.TextView, INSTANCE=2]
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"ELEMENT":"3"}}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.findElement() result: {"ELEMENT":"3"}
[HTTP] <-- POST /wd/hub/session/7a8f2350-fb71-40d4-ad52-dcc20387aeb9/element 200 296 ms - 87
[HTTP] --> POST /wd/hub/session/7a8f2350-fb71-40d4-ad52-dcc20387aeb9/element/3/click {"id":"3","sessionId":"7a8f2350-fb71-40d4-ad52-dcc20387aeb9"}
[debug] [MJSONWP] Calling AppiumDriver.click() with args: ["3","7a8f2350-fb71-40d4-ad52-dcc20387aeb9"]
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"3"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"3"}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type ACTION
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command action: click
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":true}
[debug] [AndroidBootstrap] Received command result from bootstrap
[debug] [MJSONWP] Responding to client with driver.click() result: true
[HTTP] <-- POST /wd/hub/session/7a8f2350-fb71-40d4-ad52-dcc20387aeb9/element/3/click 200 1042 ms - 76
[HTTP] --> GET /wd/hub/session/7a8f2350-fb71-40d4-ad52-dcc20387aeb9/contexts {}
[debug] [MJSONWP] Calling AppiumDriver.getContexts() with args: ["7a8f2350-fb71-40d4-ad52-dcc20387aeb9"]
[debug] [AndroidDriver] Getting a list of available webviews
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'D:\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","042ade60252397ad","shell","cat","/proc/net/unix"]
[debug] [AndroidDriver] Found webviews: []
[debug] [AndroidDriver] Available contexts: ["NATIVE_APP"]
[debug] [MJSONWP] Responding to client with driver.getContexts() result: ["NATIVE_APP"]
[HTTP] <-- GET /wd/hub/session/7a8f2350-fb71-40d4-ad52-dcc20387aeb9/contexts 200 134 ms - 86
[HTTP] --> DELETE /wd/hub/session/7a8f2350-fb71-40d4-ad52-dcc20387aeb9 {}
[debug] [MJSONWP] Calling AppiumDriver.deleteSession() with args: ["7a8f2350-fb71-40d4-ad52-dcc20387aeb9"]
[debug] [AndroidDriver] Shutting down Android driver
@xiaoMGitHub 根据 3 楼那位朋友说的方法可以解决,set_value(element,str)
@wxlsh114 谢谢
好吧,图片没显示出来是因为浏览器的问题,在 chrome 正常,在 edge 和 ie11 显示不出来
思寒,html 报告在浏览器打开后图片显示不出来....,在报告的文件夹里图片都是正常显示的
没明白怎么使用,是在编写 appium 的测试代码的时候加入那些配置?有没有详细的示例或者文档,看了在线文档,没明白要怎么用
@xiaoMGitHub 还没有
@chenhengjie123 好的,谢谢,我去传下头像
@neyo 你好,我想向你请教下关于 python+appium1.6.3 获取 toast 的问题,不知道你可不可以指教一下,我看了你贴的源码,自己也试了,一直是提示超时
就是这样的,点击【发布新话题】就提示没权限或未登录,我是登陆了的....
@chenhengjie123 为什么我发不了话题了,没有站内私信,我只能这么 @ 你了
@xiaoan_2131 能指教下 python 怎么获取的吗
这个。。。。没有测试报告吗
@ovpt 好的,谢谢
@xujiakai 看了应该是没有的,我再贴个图
弹出框是不是可以做为一个隐藏,用 element.is_displayed() 去判断?
@chenhengjie123 多线程。。。好吧,我再去啃啃
@dadeshuo 并行的问题你解决了吗?
@chenhengjie123 刚翻到个跟我差不多问题的帖子,看了一下,从回复里解决了不能开启多个 sever 的问题,但是 2 台设备运行是依次运行,不是并行。。。。