Comments (2)
补充一下,我是已经进入到了H5这个页面,但是还是提示没有检测到,但是我用chrome:inspect也能看到这个页面。是不是和X5协议有关啊?我访问localhost:9222/json, 不会报错,但是返回了一个空的[]。同样的网页在微信里是好的;
企业微信的进程是下面这个:
WebView in com.tencent.wework (57.0.2987.132)
微信的进程是
com.tencent.mm (57.0.2987.132)
Error in sys.excepthook:
Traceback (most recent call last):
File "E:\FAutoTest-master\fastAutoTest\utils\vmhook.py", line 48, in _handleUncaughtException
raise Exception(exctype)
Exception: <type 'exceptions.RuntimeError'>
Original exception was:
Traceback (most recent call last):
File "E:/FAutoTest-master/sample/HYK_TestDemo.py", line 17, in
h5Driver.initDriver()
File "E:\FAutoTest-master\fastAutoTest\core\h5\h5Engine.py", line 70, in initDriver
url = self._urlFetcher.fetchWebSocketDebugUrl()
File "E:\FAutoTest-master\fastAutoTest\core\h5\h5WebSocketDebugUrlFetcher.py", line 37, in fetchWebSocketDebugUrl
self._fetchInner()
File "E:\FAutoTest-master\fastAutoTest\core\h5\h5WebSocketDebugUrlFetcher.py", line 55, in _fetchInner
self._webSocketDebugUrl = self._fetchWebSocketDebugUrl(self._localForwardPort)
File "E:\FAutoTest-master\fastAutoTest\core\h5\h5WebSocketDebugUrlFetcher.py", line 162, in _fetchWebSocketDebugUrl
raise RuntimeError(errorMsg)
RuntimeError: 在执行脚本前,先进入H5页面
Process finished with exit code 1
from fautotest.
可以,可以尝试按以下步骤进行修改即可使用:第一步,修改_ADB_FIND_STR_CMD里面获得指定App进程号的方法,如企业微信是com.tencent.wework等,其它类x5内核类似;第二步,修改fetchWeixinToolsProcessPid里面的方法,使其连接上你所要fetch上的上面获取的那个进程号即可。
from fautotest.
Related Issues (20)
- 可以测试哪些性能指标呢? HOT 1
- 运行微信小程序时报错,提示"RuntimeError: 获取小程序页面特征失败" HOT 4
- 运行小程序不稳定,有时报错"RuntimeError: 无法获取debug url,并检查是否配置了代理,是否已经建立了websocket连接未关闭“ HOT 2
- 获取pid失败 HOT 1
- FAutoTest支持其他app的小程序测试吗?比如支付宝小程序、QQ小程序 HOT 1
- Android8 开启微信Debug模式后在Chrome Inspect上看不到小程序进程,框架会出现获取小程序pid失败,请检查是否在小程序首屏进行初始化错误 HOT 5
- 有没有类似的waitForElement的方法,等待元素加载后再后续操作 HOT 1
- 小程序 native 原生框架怎么定位操作 示例里面的腾讯药典全是H5的不是原生的 HOT 1
- 微信7.0下无法获取小程序pid,大家可有什么办法吗?663可以,但要用7.0 HOT 1
- 微信7.0新版本获取不了pid
- H5微信textElementByXpath会缺少内容 HOT 1
- 执行H5demo报错找不到微信Tools进程,如何解决,也获取不到pid
- 我想问下这个小程序的自动化,是只能在安卓上进行吗?
- 我想问下这个小程序的自动化,是只能在安卓上进行吗? HOT 1
- 环境搭建的问题
- FAutoTest腾讯好像不维护了 HOT 1
- 华为手机:获取小程序pid失败,请检查是否在小程序首屏进行初始化错误
- 没人维护了,还是用appium方案吧
- 没有人维护了吗?
- 竟然不维护了。。。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fautotest.