Python-UIAutomation-for-Windows
Python-UIAutomation-for-Windows copied to clipboard
(Donot use 3.7.6,3.8.1):snake:Python 3 wrapper of Microsoft UIAutomation. Support UIAutomation for MFC, WindowsForm, WPF, Modern UI(Metro UI), Qt, IE, Firefox, Chrome ...
## broswer_wind = auto.PaneControl(searchDepth=1,ClassName='Chrome_WidgetWin_1',Name='新标签页 - Google Chrome' ) print(broswer_wind) print(broswer_wind.Handle) ## 这样好像只能获取到第一个窗口handle,怎样获取所有handle
场景:打开360杀毒,点击更新。 版本:win10 32 详细描述:可以打开360杀毒主窗口,并且识别到主窗口的Lt, Rt, Lb, Rb,但是点击“检查更新”(日志和设置也测试过),鼠标没有反应。 上述操作在 win10 64 和win8 64 上均可以正常识别并点击。 请问大大,这个问题大概是什么原因?很久不得其解。
subprocess.Popen('MessageBox.exe') print(automation.GetRootControl()) Form= automation.WindowControl(searchDepth = 1,ClassName = "Window",Name="MainWindow") Form.EditControl(AutomationId='messageBoxText').Click() Form.EditControl(AutomationId='caption').Click() ownerCheckBox=Form.CheckBoxControl(AutomateionId='ownerCheckBox') Form.ComboBoxControl(AutomateionId="buttonComboBox").Select('YesNo') #第一个能选择上 Form.ComboBoxControl(AutomateionId="imageComboBox").Select('Stop') Form.ComboBoxControl(AutomateionId="defaultResultComboBox").Select('Yes') Form.ComboBoxControl(AutomateionId="optionsComboBox",).Select('RightAlign') #这三个都不能成功操作 txtName=Form.ButtonControl(AutomationId="showMessageBoxButton").Click()
Hi, I'm doing test automation for a UWP application, each icon of the application is covered by "Border" control. However, "BorderControl"s are not detected by UIautomation, What i'm doing is...
尝试使用Task Scheduler来跑这个uiautomation, 但无法成功. SSH: 无法获取所有Elements 只有一个root而已 Exp: "Desktop1" Local:  SSH: 
for循环的第一次,可以切换窗口成功,第二次循环的时候就无法切换了
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() 显示已经找到这个元素了,但是在移动点击的时候会报这个错,尝试了好多次都是这样,有什么解决的方法吗?急急急!感谢各位大佬啦~ 鞠躬感谢~
