airtest-selenium
airtest-selenium copied to clipboard
Airtest web automation framework.
在使用assert_template和airtest_touch时内部使用到了selenium的screenshot 在selenium内部针对图片截图建议使用.png格式图片   故,该PR将所有jpg格式转为png格式来消除Warning 
【操作】: 1、设置内设置了Chrome的路径 2、连接窗口 3、根据提示导入必要的引入 4、driver.get输入一个网址 5、运行 【结果】: 点击进行运行后走到driver = WebChrome()报错,如下所示: ====================================================================== ERROR: runTest (app.widgets.code_runner.ide_launcher.AirtestIDECase) ---------------------------------------------------------------------- Traceback (most recent call last): File "airtest\cli\runner.py", line 73, in runTest File "site-packages\six.py", line 693,...
在本地selenium4的情况下运行airtest_selenium的driver.find_element_by_id 会提示UserWarning: find_element_by_* commands are deprecated. Please use find_element() instead 这个warning不理会也没问题,还是觉得老的写法方便。 下面我把proxy.py文件里的loop_find_element增加了个by参数 ```python def loop_find_element(self, func,by, text, timeout=10, interval=0.5): """ Loop to find the target web element by func. Args:...
在一台Windows Server部署了Jenkins,来运行airtest,如果我打开RDP并把窗口激活是没问题的,一但关闭RDP感觉canvas(H5游戏)就不刷新了,airtest_touch成功了,但是由于画面没变化所以assert_template失败了。
未赋值G.DEVICE 导致无法正常调用airtest.core.api中的大多数函数
airtestIDE版本,V1.2.2 airtest-selenium的代码中设置了图片点击位置target_pos参数: driver.airtest_touch(Template(r"tpl1576225275147.png", target_pos=8, record_pos=(27.35, 7.145), resolution=(100, 100))) 实际运行时点击的图片位置仍是5
在使用Airtest-Selenium测试Web页面时,若要判断一些弹窗提示,若发生弹窗关闭弹窗继续执行,由于弹窗结构经常迭代修改,不想通过selenium元素定位的方式,想通过识别图像的方式判断,手机端可以使用if exists(图像元素)来判断,但貌似web端无法用这个方法,想问下目前有什么解决方案么?
导入的也会有声明,又会打开另一个chrome,能不能不打开另一个chrome,使导入的.air在原页面上执行.