直接上代码,主要由两部分组成。
1.find element 定位窗体,把seletor转为Uielement,output为Uielement类型变量。
2.invoke method 第一行空
第二行uielement
第三行BringToForeground
此方法适用各种疑难杂窗体不能自动移到最上层,bringtoforeground可以将它们主动置最上层。
直接上代码,主要由两部分组成。
1.find element 定位窗体,把seletor转为Uielement,output为Uielement类型变量。
2.invoke method 第一行空
第二行uielement
第三行BringToForeground
此方法适用各种疑难杂窗体不能自动移到最上层,bringtoforeground可以将它们主动置最上层。