步骤: 1.公开webEx会议 2.点击共享->共享我的屏幕
环境Python版本: 3.7.2
pywinauto: 0.6.8
操作系统: Windows 10
def test_webex_productive_tool():
app = Application(backend='uia').start(r"C:\Program Files (x86)\WebEx\Productivity Tools\ptoneclk.exe")
mainWebExWindow = Desktop(backend="uia").window(title = "WebEx Productivity Tools")
cisoWebExMeetingWin = Desktop(backend="uia").window(title = "Cisco Webex Meetings")
cisoWebExMeetingWin.ShareMenuItem.click_input() # click share from main menu
#cisoWebExMeetingWin.MyScreenMenuItem.click_input() #Click My Screen share from share--->Menu
keyboard.press("S")
keyboard.release("S")
pywinauto.mouse.move(coords=(377, 25))
#print(cisoWebExMeetingWin.Youresharingyourscreen.texts()[0])
#elements = pywinauto.findwindows.find_elements(class_name="wcl_manager1", control_type="Button")
elements = pywinauto.findwindows.find_elements(class_name="wcl_manager1", control_type="Pane")
print(elements)
还使用父,类和名称的选项尝试了不同的方式,但是每次返回null时都