app?? ?C:\Users\v-hongweishi\AppData\Local\Programs\Xmind\Xmind.exe
deviceName?? ?DESKTOP-7NJ1ENB
platformName?? ?Windows
應用程序ID(AppId)是應用程序用戶模型 ID (AppUserModelID),簡稱 AUMID
Outlook ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Microsoft.Office.OUTLOOK.EXE.15
郵件 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail
Outlook (new) ? ? ? ? ? ? ? ? ? ? ? ? Microsoft.OutlookForWindows_8wekyb3d8bbwe!Microsoft.OutlookforWindows
###################################
ActionChains(driver).double_click(control_panel_element).perform()
###################################
from selenium.webdriver.support import expected_conditions as EC
# 字體選擇
combox_btn = WebDriverWait(driver, 30, 1).until(
? ? EC.visibility_of_element_located((By.XPATH, "//ComboBox[@Name='字體系列']/Button")))
combox_btn.click()
###################################
from selenium.webdriver.support.ui import WebDriverWait
temp_element = WebDriverWait(driver, 1, 1).until(EC.visibility_of_element_located((By.XPATH, "//List[@Name='字體系列']")))
? ? temp_element.send_keys(Keys.PAGE_DOWN)
###################################