Python-UIAutomation-for-Windows
Python-UIAutomation-for-Windows copied to clipboard
Can not move cursor. PaneControl's BoundingRectangle is (0,0,0,0)[0x0]. SearchProperties: {ControlType: PaneControl}
win_c = auto.WindowControl(searchDepth=10, ClassName="IEFrame").PaneControl(searchDepth=10, ClassName='Frame Tab').PaneControl(searchDepth=10, ClassName="TabWindowClass") pw_input = win_c.GetChildren()[0].GetChildren()[0].GetChildren()[0] is_pw_input = auto.WaitForExist(pw_input, 20) print("-------------------------------------------------------") print(win_c) print("-------------------------------------------------------") print(pw_input) print("-------------------------------------------------------") if is_pw_input: time.sleep(15) pw_input.Click()
显示已经找到这个元素了,但是在移动点击的时候会报这个错,尝试了好多次都是这样,有什么解决的方法吗?急急急!感谢各位大佬啦~ 鞠躬感谢~
win_c = auto.WindowControl(searchDepth=10, ClassName="IEFrame").PaneControl(searchDepth=10, ClassName='Frame Tab').PaneControl(searchDepth=10, ClassName="TabWindowClass") pw_input = win_c.GetChildren()[0].GetChildren()[0].GetChildren()[0] is_pw_input = auto.WaitForExist(pw_input, 20) print("-------------------------------------------------------") print(win_c) print("-------------------------------------------------------") print(pw_input) print("-------------------------------------------------------") if is_pw_input: time.sleep(15) pw_input.Click()
显示已经找到这个元素了,但是在移动点击的时候会报这个错,尝试了好多次都是这样,有什么解决的方法吗?急急急!感谢各位大佬啦~ 鞠躬感谢~
您好,请问您解决了吗?
#177