Winium с блокнотом "alt + f" не работает в python коде - PullRequest
0 голосов
/ 01 мая 2020
Someone help me to fix hotkey combination of "alt + n" and "alt + f" after launching notepad in windows 10 with scale 100%


from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
driver1 = webdriver.Remote(
    command_executor='http://localhost:2121',
    desired_capabilities={
    "debugConnectToRunningApp": 'false',
    "keyboardSimulator": '0',
    "app": r"C:\Windows\System32\notepad.exe"
    })
combine_keys = ActionChains(driver1)
combine_keys.key_down(Keys.ALT).send_keys('f').key_up(Keys.ALT).perform()  /* used command */
#

Пробная модификация "" keyboardSimulator "0/1 с последним Winium.Desktop.Driver.exe ничего не работает, я попробовал несколько комбинаций send_keys до сих пор не повезло TIA

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...