android 自动化web,如何在android上使用selenium或appium自动化Chrome浏览器?

用户试图在Android设备上使用Appium自动化Chrome浏览器,但遇到了安装解锁apk失败和服务器错误的问题。尝试了链接提供的方法,结果只自动化了PC浏览器。日志显示adb安装apk时出现问题,并且在尝试访问信息时收到错误响应。环境变量已配置了chromedriver.exe。
摘要由CSDN通过智能技术生成

我想在

Android设备上自动化

Android Chrome浏览器(不只是webview或其他浏览器,而是Chrome浏览器).我认为这可以通过这个链接

https://sites.google.com/a/chromium.org/chromedriver/getting-started/getting-started—android,但它自动化我的PC浏览器浏览器.

我也试过Appium,但日志后没有任何反应:

debug: executing: adb install C:\Users\hidden\Downloads\AppiumForWindows-0.14.2\

Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk

当我尝试从浏览器访问信息时,我得到了这个:

info: Responding to client with error: {"status":13,"value":{"message":"An unkno

wn server-side error occurred while processing the command.","origValue":"Did no

t successfully proxy server command"},"sessionId":"666c9e4f-7653-487a-b299-959d4

000ca79"}

我的环境变量PATH中有chromedriver.exe,整个日志如下所示:

info: Welcome to Appium v0.14.2

info: Appium REST http interface listener started on 127.0.0.1:5555

info - socket.io started

debug: Appium request initiated at /wd/hub/session

debug: Request received with params: {"desiredCapabilities":{"platform":"ANDROID

","app":"chrome","browserName":"android","browserConnectionEnabled":true,"app-pa

ckage":"com.android.chrome","device":"android","rotatable":true,"app-activity":"

com.google.android.apps.chrome.Main","takesScreenshot":true,"version":""}}

info: Looks like we want chrome on android

info: Creating new appium session 666c9e4f-7653-487a-b299-959d4000ca79

info: Ensuring Chromedriver exists

debug: Pushing unlock helper app to device...

debug: executing: adb install C:\Users\hidden\Downloads\AppiumForWindows-0.14.2\

Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk

warn: killed=false,code=1,signal=null

debug: Appium request initiated at /wd/hub/status

debug: Request received with params: {}

debug: Proxying command to 127.0.0.1:9515

info: Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/status

","method":"GET"}

info: Responding to client with error: {"status":13,"sessionId":"666c9e4f-7653-487a-b299-959d4

000ca79"}

GET /wd/hub/status 500 1014ms - 238b

POST /wd/hub/session 200 31311ms

谢谢.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值