weditor求助,求助,求助

apple_56849723 apple_56849723 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

 

可以运行,也可以获取定位页面元素位置,

无法执行命令,运行时很多错误提示,求助

 

(venv) D:\pythonProject1>weditor
listening on http://192.168.10.205:17310
[I 221027 18:12:36 web:2271] 304 GET / (::1) 7.98ms
[I 221027 18:12:37 shell:47] Started drain subprocess stdout in thread
[I 221027 18:12:37 web:2271] 101 GET /ws/v1/python (::1) 6.98ms  
[I 221027 18:12:37 shell:189] create process pid: 5076           
[I 221027 18:12:37 web:2271] 304 GET /api/v1/version (::1) 1.00ms
[I 221027 18:13:01 web:2271] 200 POST /api/v1/connect (::1) 2019.57ms
[W 221027 18:13:01 shell:153] Unsupported output line: Traceback (most recent call last):                                                                      
[W 221027 18:13:01 shell:153] Unsupported output line:   File "D:\pythonProject1\venv\lib\site-packages\weditor\web\ipyshell-console.py", line 154, in main    
[W 221027 18:13:01 shell:153] Unsupported output line:   File "D:\pythonProject1\venv\lib\site-packages\weditor\web\ipyshell-console.py", line 36, in exec_code
[W 221027 18:13:01 shell:153] Unsupported output line:   File "D:\pythonProject1\venv\lib\site-packages\colorama\ansitowin32.py", line 47, in write            
[W 221027 18:13:01 shell:153] Unsupported output line:   File "D:\pythonProject1\venv\lib\site-packages\colorama\ansitowin32.py", line 177, in write
[W 221027 18:13:01 shell:153] Unsupported output line:   File "D:\pythonProject1\venv\lib\site-packages\colorama\ansitowin32.py", line 205, in write_and_convert
[W 221027 18:13:01 shell:153] Unsupported output line:   File "D:\pythonProject1\venv\lib\site-packages\colorama\ansitowin32.py", line 211, in write_plain_text
[W 221027 18:13:01 shell:153] Unsupported output line: AttributeError: 'MockStdout' object has no attribute 'flush'
[W 221027 18:13:01 shell:129] proc-stdout read empty line
[I 221027 18:13:01 page:204] Serial: android:Q5S0219429004815
[I 221027 18:13:01 shell:51] windows process stdout closed
[I 221027 18:13:01 web:2271] 200 GET /api/v1/devices/android%3AQ5S0219429004815/screenshot (::1) 403.29ms
[I 221027 18:13:02 web:2271] 200 GET /api/v2/devices/android%3AQ5S0219429004815/hierarchy (::1) 726.12ms
[E 221027 18:20:54 ioloop:760] Exception in callback functools.partial(<function WebSocketProtocol._run_callback.<locals>.<lambda> at 0x0000021EEB0723B0>, <Task finished name='Task-4974' cor
o=<PythonShellHandler.on_message() done, defined at D:\pythonProject1\venv\lib\site-packages\weditor\web\handlers\shell.py:204> exception=OSError(22, 'Invalid argument')>)
    Traceback (most recent call last):
      File "D:\pythonProject1\venv\lib\site-packages\tornado\ioloop.py", line 740, in _run_callback
        ret = callback()
      File "D:\pythonProject1\venv\lib\site-packages\tornado\websocket.py", line 644, in <lambda>
        self.stream.io_loop.add_future(result, lambda f: f.result())
      File "D:\pythonProject1\venv\lib\site-packages\weditor\web\handlers\shell.py", line 212, in on_message
        await self.__process.stdin_write(code.encode('utf-8'))
      File "D:\pythonProject1\venv\lib\site-packages\weditor\web\handlers\shell.py", line 66, in stdin_write
        return self.proc.stdin.write(data)
    OSError: [Errno 22] Invalid argument
[E 221027 18:20:54 web:1798] Uncaught exception GET /ws/v1/python (::1)
    HTTPServerRequest(protocol='http', host='localhost:17310', method='GET', uri='/ws/v1/python', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "D:\pythonProject1\venv\lib\site-packages\tornado\web.py", line 1713, in _execute
        result = await result
      File "D:\pythonProject1\venv\lib\site-packages\tornado\websocket.py", line 277, in get
        await self.ws_connection.accept_connection(self)
      File "D:\pythonProject1\venv\lib\site-packages\tornado\websocket.py", line 867, in accept_connection
        await self._accept_connection(handler)
      File "D:\pythonProject1\venv\lib\site-packages\tornado\websocket.py", line 950, in _accept_connection
        await self._receive_frame_loop()
      File "D:\pythonProject1\venv\lib\site-packages\tornado\websocket.py", line 1106, in _receive_frame_loop
        await self._receive_frame()
      File "D:\pythonProject1\venv\lib\site-packages\tornado\websocket.py", line 1197, in _receive_frame
        await handled_future
    OSError: [Errno 22] Invalid argument
exiting...
[I 221027 18:21:23 __main__:73] exit success

 

...全文

相关推荐

Weditor包,安装weditor失败,subprocess-exited-with-error

python安装weditor失败 weditor-0.6.2-py3-none-any.whl离线包,成功了。 不想麻烦的,直接下我下载好的安装包,pip install 下载包的路径及安装包

varrior

Weditor的搭建及使用

文章内容为weditor的搭建,为UI自动化定位中xpath的使用提供方便

Alittle123z

WEditor-开源

适用于您的游戏和应用程序的Ogre场景编辑器

weixin_38659159

WEditor元素定位

WEditor可以理解为在浏览器中打开的uiautomatorviewer,个人使用起来比uiautomatorviewer更好用,不会像uiautomatorviewer那样由于安卓系统的不同,会出现各种情况,还支持安卓、ios、Neco(beta); 如果在使用uiautomatorviewer遇到问题时,可以采用WEditor试试

Ada

uiautomator2与Weditor工具[代码]

本文详细介绍了uiautomator2自动化测试工具及其配套的Weditor工具的使用。首先解释了为什么选择uiautomator2,特别是在安卓原生架构应用测试中的优势,并对比了其他工具如appnium和airtest的适用场景。接着,文章详细介绍了Weditor的安装步骤,包括Python环境的配置和安装命令,以及如何解决安装过程中可能遇到的问题。此外,文章还详细说明了Weditor的界面布局和功能,包括设备连接、元素定位、点击操作、文本输入和代码编写等。最后,文章提供了使用Weditor进行自动化测试的具体操作步骤,帮助读者快速上手。

ik67890123
评论 1
收藏 已收藏
分享
返回顶部
apple_56849723
脚本语言 37,738 成员 34,208 内容