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

Function get_configured_pyautogui

seleniumbase/core/browser_launcher.py:1158–1181  ·  view source on GitHub ↗
(pyautogui_copy)

Source from the content-addressed store, hash-verified

1156
1157
1158def get_configured_pyautogui(pyautogui_copy):
1159 if (
1160 IS_LINUX
1161 and hasattr(pyautogui_copy, "_pyautogui_x11")
1162 and "DISPLAY" in os.environ.keys()
1163 ):
1164 if (
1165 getattr(sb_config, "_pyautogui_x11_display", None)
1166 and hasattr(pyautogui_copy._pyautogui_x11, "_display")
1167 and (
1168 sb_config._pyautogui_x11_display
1169 == pyautogui_copy._pyautogui_x11._display
1170 )
1171 ):
1172 pass
1173 else:
1174 import Xlib.display
1175 pyautogui_copy._pyautogui_x11._display = (
1176 Xlib.display.Display(os.environ['DISPLAY'])
1177 )
1178 sb_config._pyautogui_x11_display = (
1179 pyautogui_copy._pyautogui_x11._display
1180 )
1181 return pyautogui_copy
1182
1183
1184def uc_gui_press_key(driver, key):

Callers 7

uc_gui_press_keyFunction · 0.85
uc_gui_press_keysFunction · 0.85
uc_gui_writeFunction · 0.85
_uc_gui_click_x_yFunction · 0.85
uc_gui_click_x_yFunction · 0.85
_uc_gui_click_captchaFunction · 0.85
_uc_gui_handle_captcha_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…