- 【minium】什么时候能够支持 click_coordinate() 函数?
对于内嵌h5的页面,只能这么操作
01-04 - MiniCommandError: timeout?
self.app.switch_tab(url, is_wait_url_change) ..\test_env\lib\site-packages\minium\miniprogram\base_driver\minium_log.py:172: in wrapper result = func(*args, **kwargs) ..\test_env\lib\site-packages\minium\utils\utils.py:82: in wrapper ret = func(*args, **kwargs) ..\test_env\lib\site-packages\minium\miniprogram\base_driver\app.py:767: in switch_tab page = self._change_route_async( ..\test_env\lib\site-packages\minium\miniprogram\base_driver\app.py:933: in _change_route_async cmd.get_open_result(wait_timeout) ..\test_env\lib\site-packages\minium\miniprogram\base_driver\app.py:128: in get_open_result return self._open_callback.get_result() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <minium.miniprogram.base_driver.callback.AsyncCallback object at 0x000001D7F91569B0> timeout = 0 def get_result(self, timeout=0): """ 获取回调结果, 结果如果为exception直接抛出, 超时未获取到则抛MiniTimeoutError """ if self.wait_called(timeout): > return self._waiter.result() E minium.framework.exception.MiniCommandError: timeout ..\test_env\lib\site-packages\minium\miniprogram\base_driver\callback.py:152: MiniCommandError minium 1.4.6 win11 开发者工具 stable1.06.2310080 调试基础库 3.1.5
2023-11-28 - minitest个人使用过程中的问题合集?
mi'nitest {'version': '1.4.3', 'revision': '441a30f6097b9e229f4bb7c20980bb47689a5d67', 'branch': 'master', 'update_at': '2023-07-06 10:49:59'} 微信开发者工具 1.06.2307260 调试基础库 2.33.0 启动开发者工具时卡死,一片空白,需要手动去点,才能正常打开小程序,一点也不自动化 [图片] page destroyed(1.4.2说修复了,但是我用的1.4.3还是经常出现) 时不时就会出现,明显是工具和框架的问题 File "D:\PythonProject\cyy_automate_test\fixtures\MyMiniumBase.py", line 156, in find_element return self.page.get_element( File "D:\PythonProject\ui_env\lib\site-packages\minium\miniprogram\base_driver\app.py", line 217, in wrapper return attr(*args, **kwargs) File "D:\PythonProject\ui_env\lib\site-packages\minium\miniprogram\base_driver\minium_log.py", line 172, in wrapper result = func(*args, **kwargs) File "D:\PythonProject\ui_env\lib\site-packages\minium\miniprogram\base_driver\page.py", line 277, in get_element r = self.get_elements( File "D:\PythonProject\ui_env\lib\site-packages\minium\miniprogram\base_driver\minium_log.py", line 172, in wrapper result = func(*args, **kwargs) File "D:\PythonProject\ui_env\lib\site-packages\minium\miniprogram\base_driver\page.py", line 398, in get_elements return filter_elements() File "D:\PythonProject\ui_env\lib\site-packages\minium\utils\utils.py", line 56, in wrapper r = func(*args, **kwargs) File "D:\PythonProject\ui_env\lib\site-packages\minium\miniprogram\base_driver\page.py", line 384, in filter_elements elements = self._get_elements_by_css(selector, max_timeout, index=-1) File "D:\PythonProject\ui_env\lib\site-packages\minium\miniprogram\base_driver\page.py", line 560, in _get_elements_by_css els = search_elements(_selector_list) File "D:\PythonProject\ui_env\lib\site-packages\minium\utils\utils.py", line 56, in wrapper r = func(*args, **kwargs) File "D:\PythonProject\ui_env\lib\site-packages\minium\miniprogram\base_driver\page.py", line 553, in search_elements return self.__search_child( File "D:\PythonProject\ui_env\lib\site-packages\minium\miniprogram\base_driver\page.py", line 517, in __search_child els = self.__get_elements(_selector) File "D:\PythonProject\ui_env\lib\site-packages\minium\utils\utils.py", line 82, in wrapper ret = func(*args, **kwargs) File "D:\PythonProject\ui_env\lib\site-packages\minium\miniprogram\base_driver\page.py", line 495, in __get_elements ret = self._send("Page.getElements", {"selector": selector}) File "D:\PythonProject\ui_env\lib\site-packages\minium\miniprogram\base_driver\page.py", line 488, in _send self.connection.send(method, params) File "D:\PythonProject\ui_env\lib\site-packages\minium\miniprogram\base_driver\connection.py", line 447, in send return self._receive_response(cmd) File "D:\PythonProject\ui_env\lib\site-packages\minium\miniprogram\base_driver\connection.py", line 473, in _receive_response raise response minium.framework.exception.PageDestroyed: page destroyed 找不到元素 时而找到时而找不到,超时报错,程序很不流畅 ......还会继续更新
2023-08-25 - 模拟器长时间没有响应,请确认你的业务逻辑中是否有复杂运算,或者死循环?
minitest运行,每次都会这样,开发者工具打开后就一直卡死,Python程序不停循环下图内容[图片]
2023-03-17