MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / uc_gui_press_key

Function uc_gui_press_key

seleniumbase/core/browser_launcher.py:1184–1190  ·  view source on GitHub ↗
(driver, key)

Source from the content-addressed store, hash-verified

1182
1183
1184def uc_gui_press_key(driver, key):
1185 install_pyautogui_if_missing(driver)
1186 import pyautogui
1187 pyautogui = get_configured_pyautogui(pyautogui)
1188 gui_lock = FileLock(constants.MultiBrowser.PYAUTOGUILOCK)
1189 with gui_lock:
1190 pyautogui.press(key)
1191
1192
1193def uc_gui_press_keys(driver, keys):

Callers 1

get_local_driverFunction · 0.85

Calls 2

get_configured_pyautoguiFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…