其他测试框架 Crosswalk webdriver 运行时还没切换到 H5 页面就报错退出

Heyyu · September 27, 2016 · Last by Heyyu replied at September 27, 2016 · 1874 hits

测试 app 是要点击操作后才能进入特定 H5 页面
我根据Crosswalk App UI 自动化 这篇文章写了后还没等我切换到 H5 页面就报错退出,报错代码是:

driver = webdriver.Remote('http://localhost:9515', capabilities)

报错如下:
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: xwalk not reachable
(Driver info: xwalkdriver=2.5.ede663c5c5362a073e538cdabacf85612bc9e16a,platform=Linux 3.16.0-30-generic x86)
有什么办法可以先在 Native 页面操作进入 H5 后再执行?

共收到 0 条回复 时间 点赞
Heyyu [Topic was deleted] 中提及了此贴 27 Sep 15:48
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up