麻烦确认一下小程序源码项目下 project.config.json中的libVersion字段是什么
[minium]按照官方文档的demo写了一下,运行的时候报错,有人能帮忙看一下是什么原因导致的吗?[图片] [图片] [图片] [图片] [图片] F:\python3.9.9\python.exe "D:\AppData\PyCharm Community Edition 2021.1.3\plugins\python-ce\helpers\pycharm\_jb_unittest_runner.py" --path E:/youlu_code/minium-testcase1201/test/first_test.py Testing started at 18:13 ... Launching unittests with arguments python -m unittest E:/youlu_code/minium-testcase1201/test/first_test.py in E:\youlu_code\minium-testcase1201\test INFO 2021-12-15 18:14:01,214 wx_minium.py launch_dev_tool 692 Starting dev tool and launch MiniProgram project ... Failure Traceback (most recent call last): File "F:\python3.9.9\lib\unittest\suite.py", line 166, in _handleClassSetUp setUpClass() File "F:\python3.9.9\lib\site-packages\minium\framework\assertbase.py", line 128, in setUpClass _miniClassSetUp() File "F:\python3.9.9\lib\site-packages\minium\framework\minitest.py", line 243, in _miniClassSetUp cls.mini = get_minium(cls.CONFIG) File "F:\python3.9.9\lib\site-packages\minium\framework\minitest.py", line 99, in get_minium g_minium = minium.miniprogram.get_minium_driver(conf=cfg, native=g_native) File "F:\python3.9.9\lib\site-packages\minium\miniprogram\__init__.py", line 28, in get_minium_driver return APP[application](conf, *args, **kwargs) File "F:\python3.9.9\lib\site-packages\minium\miniprogram\wx_minium.py", line 93, in __init__ self.launch_weapp() File "F:\python3.9.9\lib\site-packages\minium\miniprogram\base_driver\minium_log.py", line 135, in wrapper result = func(*args, **kwargs) File "F:\python3.9.9\lib\site-packages\minium\miniprogram\wx_minium.py", line 660, in launch_weapp self.launch_dev_tool() File "F:\python3.9.9\lib\site-packages\minium\miniprogram\base_driver\minium_log.py", line 135, in wrapper result = func(*args, **kwargs) File "F:\python3.9.9\lib\site-packages\minium\miniprogram\wx_minium.py", line 705, in launch_dev_tool self.__update_project_config() File "F:\python3.9.9\lib\site-packages\minium\miniprogram\wx_minium.py", line 677, in __update_project_config self.sdk_version is not None and self._comp_version(self.sdk_version, "2.7.3") == -1 File "F:\python3.9.9\lib\site-packages\minium\miniprogram\base_driver\minium_object.py", line 437, in _comp_version if int(a[i]) > int(b[i]): ValueError: invalid literal for int() with base 10: ''
2021-12-15minitest -v看看是哪个minium 版本。另,确认在调用allow的时候,已经有授权弹窗出现
【minitest】为什么native在真机条件下获取不到授权提示框的“允许按钮”?试了两部手机小米10、mix 2、已经逍遥模拟器 [图片] [图片] [图片]
2021-11-29你pymysql是安装到了3.8.8的site-packages中?你可以确认下能import pymysql的地方输出一下pymysql.__file__
【minium】使用minitest执行时提示没有pymysql包?pymysql正常安装,本地执行正常。minitest命令执行时提示找不到pymysql [图片]
2021-11-22bindkeyboardheightchange 这个事件中有做什么操作么?
【minium】textarea标签用input输入后内容被自动清空?元素本身是个事件,触发后才有,光标移除就没有输入标签了,有内容时标签会一直在, 为什么输入内容后自动被清空了? 代码: textarea_p = self.mini.app.get_current_page() textarea_p.get_element("textarea", max_timeout=10).input("shut") [视频] [图片]
2021-11-12js版本请使用 automator https://developers.weixin.qq.com/miniprogram/dev/devtools/auto/automator.html
[minium]还支持 JavaScript 版本吗?[图片] minium还支持javaScript版本吗,看官方只更新到2019年
2021-11-12minium驱动与真机调试无异,应该是小程序调用了获取位置的接口但手机未授权获取定位信息
【minium】运行Android端微信小程序,打开微信小程序后报“定位未开启”,请问是什么原因?运行环境: IDE调试基础库--2.20.0 ;Android版本--9 ;minium 'version'--1.2.1 问题现象: 1、运行命令“minitest -m test.first_test -c config.json -g”后,能打开微信,并进入小程序首页,但提示“请开启定位”,之后自动关闭微信(通过IDE开发者工具,手动点击工具栏的“预览”/“真机调试”是不会有这个提示)[图片] 2、查看控制台报错 [图片] 代码如下: [图片][图片]
2021-11-01trigger是传事件值,如: tap, focus, confirm, 不是绑定的事件名称
[minium]使用trigger方法没值时传None么?trigger方法没有value时传None么? 这样写没有报错,但是不确定是否触发了事件:i_c.trigger("focusPLFun", {"value": None}) 问题是textarea的元素定位不到,不确定是事件没有触发还是事件类型的需要其他方式? 触发事件后的获取元素代码: textarea_p = self.mini.app.get_current_page() textarea_p_input = textarea_p .get_element("textarea", max_timeout=10) 错误提示: minium.framework.exception.MiniElementNotFoundError: element[textarea] not found [图片]782932369
2021-10-26xpath定位需要minium v1.2.1以上。如果还有报错,麻烦贴一下更详细的log
[minium]小程序自动化,根据xpath定位元素报错?使用xpath定位元素的时候报错: elements search fail cause: Failed to execute 'querySelectorAll' on 'Document': The provided selector is empty.
2021-10-19fixed,请更新下包
minitest运行问题?class FirstTest(minium.MiniTest):def test_get_system_info(self)selfself"SDKVersion", sys_info) 执行出错。 Traceback (most recent call last): File "c:\programfiles\python\lib\s ite-packages\minium\framework\libs\unittest\suite.py", line 33, in _handleClassSetUp _miniClassSetUp() File "c:\programfiles\python\lib\site-packages\minium\framework\minitest.py", line 611, in _miniClassSetUp cls.mini = get_minium(cls.CONFIG) File "c:\programfiles\python\lib\site-packages\minium\framework\minitest.py", line 89, in get_minium g_minium = minium.miniprogram.get_minium_driver(conf=cfg, native=g_native) File "c:\programfiles\python\lib\site-packages\minium\miniprogram\__init__.py", line 28, in get_minium_driver return APP[application](conf, *args, **kwargs) File "c:\programfiles\python\lib\site-packages\minium\miniprogram\wx_minium.py", line 110, in __init__ self.launch_dev_tool() File "c:\programfiles\python\lib\site-packages\minium\miniprogram\base_driver\minium_log.py", line 135, in wrapper result = func(*args, **kwargs) File "c:\programfiles\python\lib\site-packages\minium\miniprogram\wx_minium.py", line 200, in launch_dev_tool self._get_sdk_version() File "c:\programfiles\python\lib\site-packages\minium\miniprogram\wx_minium.py", line 166, in _get_sdk_version self.sdk_version = json.loads(fd.read().strip()).get("libVersion", None)。
2021-10-11fixed,请更新下包
minium更新到1.2.0的时候获取系统信息的时候报错是怎么回事呢?minium的版本是1.2.0的[图片] [图片] 运行以上代码的时候报了下面的错 重新安装会1.0.6的版本运行以上代码的时候就能正常运行不会报错 Traceback (most recent call last): File "E:\pycharm\winxuanjiuyue\demo.py", line 12, in <module> mini = minium.Minium({ File "D:\Programs\Python\Python39\lib\site-packages\minium\__init__.py", line 20, in Minium return get_minium_driver(conf, *args, **kwargs) File "D:\Programs\Python\Python39\lib\site-packages\minium\miniprogram\__init__.py", line 28, in get_minium_driver return APP[application](conf, *args, **kwargs) File "D:\Programs\Python\Python39\lib\site-packages\minium\miniprogram\wx_minium.py", line 110, in __init__ self.launch_dev_tool() File "D:\Programs\Python\Python39\lib\site-packages\minium\miniprogram\base_driver\minium_log.py", line 135, in wrapper result = func(*args, **kwargs) File "D:\Programs\Python\Python39\lib\site-packages\minium\miniprogram\wx_minium.py", line 200, in launch_dev_tool self._get_sdk_version() File "D:\Programs\Python\Python39\lib\site-packages\minium\miniprogram\wx_minium.py", line 166, in _get_sdk_version self.sdk_version = json.loads(fd.read().strip()).get("libVersion", None) UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 1497: illegal multibyte sequence
2021-10-11