yuanweihuaskhb
yuanweihuaskhb
我也遇到了,但失败时的截图有时没有隐形窗口,有时有(是个加载转圈,转圈时是控件是可以点击的),一般点击压测一段时间就会出现,概率还不低呢 2022-07-25-21-22-02 - test_other.py - test_other - click2 - 72 - INFO - 9、点击质控 2022-07-25-21-22-06 - conftest.py - conftest - pytest_runtest_makereport - 86 - INFO - 测试结果 2022-07-25-21-22-06 - conftest.py...
第一遍打卡窗口执行GetValuePattern().SetValue(info) ,反复多次操作都没有问题,但关闭窗口后再打开,再次执行GetValuePattern().SetValue(info) ,必现报 File "D:\soft_install\python3.8.8\lib\site-packages\uiautomation\uiautomation.py", line 5541, in SetValue ret = self.pattern.SetValue(value) == S_OK _ctypes.COMError: (-2147220992, None, (None, None, None, 0, None))
calibrator_table = auto.TableControl(AutomationId='dataGridViewCalibrator') # 校准品表格 calibrator_table.GetChildren() 表格里内容会变化,多次获取表格子类.GetChildren(),后面几次获取到的还是上次的内容,没有实时更新 clear_log_ok = auto.PaneControl(AutomationId="btnOK") 页面弹窗的AutomationId不会变,Name会变化,但后面几次获取Name有时信息不正确,没有实时更新,还是上一次的内容