args='D:\Release\Higemi.exe',cwd=r"D:\Release") 窗口定位 cas = automation.WindowControl(searchDepth=1, AutomationId ='myMainWindow', Name='Login') 控件定位 login=cas.ButtonControl(AutomationId ="btn_login") 鼠标动作 automation.Win32API.MouseClick
VerticalAlignment="Top" AutomationProperties.Name="Back" AutomationProperties.AutomationId VerticalAlignment="Top" AutomationProperties.Name="Back" AutomationProperties.AutomationId
2核2G云服务器首年95元,GPU云服务器低至9.93元/天,还有更多云产品低至0.1折…
Grid.Row="0" /> <ScrollBar x:Name="PART_VerticalScrollBar" AutomationProperties.AutomationId TemplateBinding ViewportHeight}" /> <ScrollBar x:Name="PART_HorizontalScrollBar" AutomationProperties.AutomationId
日历控件:uiautomation.CalendarControl 可以通过spy++来查看Control type Uiautomation元素的属性 ClassName、Name、ProcessId、AutomationId
# 控件类型,inspect界面LocalizedControlType字段的英文名 best_match=None, # 模糊匹配类似的title auto_id=None, # inspect界面AutomationId
) process ProcessId,进程id(注意:每次启动后,进程id都会变) control_id control_id control_type ControlType() auto_id AutomationId
扫码关注腾讯云开发者
领取腾讯云代金券