微信小程序调试webview_使用 Appium 测试微信小程序 Webview

在尝试使用Appium测试微信小程序内嵌的Webview时,遇到了'unknown error: unable to discover open pages'的错误。错误发生在Chromedriver启动会话阶段,可能与Chromedriver版本或兼容性有关。调试过程中,观察到Appium的日志信息,包括平台版本、设备名称、应用包名等,并记录了详细的测试步骤和错误堆栈。
摘要由CSDN通过智能技术生成

你好,我在测试微信小程序,微信webview:WebView in com.tencent.mm (57.0.2987.132),报错信息是:unable to discover open pages,是什么原因

信息如下:

Appium server all ready

2018-04-25 14:06:38,783 - [ - INFO - platformName: Android

2018-04-25 14:06:38,784 - [ - INFO - platformVersion: 5.1

2018-04-25 14:06:38,785 - [ - INFO - deviceName: [

2018-04-25 14:06:38,785 - [ - INFO - app:

2018-04-25 14:06:38,785 - [ - INFO - appPackage: com.tencent.mm

2018-04-25 14:06:38,785 - [ - INFO - appActivity: .ui.LauncherUI

2018-04-25 14:06:38,786 - [ - INFO - noReset: True

2018-04-25 14:06:38,786 - [ - INFO - unicodeKeyboard: True

2018-04-25 14:06:38,786 - [ - INFO - resetKeyboard: True

2018-04-25 14:06:38,786 - [ - INFO - chromeOptions: {'androidProcess': 'com.tencent.mm:tools'}

2018-04-25 14:06:38,787 - [ - INFO - appium server port: 4723

start cases

2018-04-25 14:07:04,582 - [ - INFO - --> LoginPage.init

2018-04-25 14:07:04,583 - [ - INFO -

2018-04-25 14:07:04,584 - [ - INFO - --> Weixin.test_application

2018-04-25 14:07:04,584 - [ - INFO - --> HomePage.wait_check_page

2018-04-25 14:07:09,745 - [ - INFO -

2018-04-25 14:07:09,745 - [ - INFO - --> HomePage.find_button

2018-04-25 14:07:10,593 - [ - INFO - --> HomePage.little_application

2018-04-25 14:07:16,473 - [ - INFO - --> HomePage.application_name

2018-04-25 14:07:20,509 - [ - INFO - --> HomePage.webview

[Chromedriver] Error: Failed to start Chromedriver session: An unknown server-side error occurred while processing the command. (Original error: unknown error: unable to discover open pages

(Driver info: chromedriver=2.28.455520 (cc17746adff54984afff480136733114c6b3704b),platform=Windows NT 10.0.16299 x86_64))

at Object.wrappedLogger.errorAndThrow (../../lib/logging.js:69:13)

at Chromedriver.callee$2$0$ (../../lib/chromedriver.js:217:13)

at tryCatch (C:\Program Files\nodejs\X64\node_global\node_modules\appium\node_modules_babel-runtime@5.8.24@babel-runtime\regenerator\runtime.js:67:40)

at GeneratorFunctionPrototype.invoke as _invoke

at GeneratorFunctionPrototype.prototype.(anonymous function) as throw

at GeneratorFunctionPrototype.invoke (C:\Program Files\nodejs\X64\node_global\node_modules\appium\node_modules_babel-runtime@5.8.24@babel-runtime\regenerator\runtime.js:136:37)

at

Error: Failed to start Chromedriver session: An unknown server-side error occurred while processing the command. (Original error: unknown error: unable to discover open pages

(Driver info: chromedriver=2.28.455520 (cc17746adff54984afff480136733114c6b3704b),platform=Windows NT 10.0.16299 x86_64))

at Object.wrappedLogger.errorAndThrow (../../lib/logging.js:69:13)

at Chromedriver.callee$2$0$ (../../lib/chromedriver.js:217:13)

at tryCatch (C:\Program Files\nodejs\X64\node_global\node_modules\appium\node_modules_babel-runtime@5.8.24@babel-runtime\regenerator\runtime.js:67:40)

at GeneratorFunctionPrototype.invoke as _invoke

at GeneratorFunctionPrototype.prototype.(anonymous function) as throw

at GeneratorFunctionPrototype.invoke (C:\Program Files\nodejs\X64\node_global\node_modules\appium\node_modules_babel-runtime@5.8.24@babel-runtime\regenerator\runtime.js:136:37)

at

[Chromedriver] Error: Failed to start Chromedriver session: An unknown server-side error occurred while processing the command. (Original error: unknown error: unable to discover open pages

(Driver info: chromedriver=2.28.455520 (cc17746adff54984afff480136733114c6b3704b),platform=Windows NT 10.0.16299 x86_64))

at Object.wrappedLogger.errorAndThrow (../../lib/logging.js:69:13)

at Chromedriver.callee$2$0$ (../../lib/chromedriver.js:217:13)

at tryCatch (C:\Program Files\nodejs\X64\node_global\node_modules\appium\node_modules_babel-runtime@5.8.24@babel-runtime\regenerator\runtime.js:67:40)

at GeneratorFunctionPrototype.invoke as _invoke

at GeneratorFunctionPrototype.prototype.(anonymous function) as throw

at GeneratorFunctionPrototype.invoke (C:\Program Files\nodejs\X64\node_global\node_modules\appium\node_modules_babel-runtime@5.8.24@babel-runtime\regenerator\runtime.js:136:37)

at

Error: Failed to start Chromedriver session: An unknown server-side e

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值