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

Method gui_write

seleniumbase/core/sb_cdp.py:2051–2060  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

2049 self.loop.run_until_complete(self.page.sleep(0.025))
2050
2051 def gui_write(self, text):
2052 self.__install_pyautogui_if_missing()
2053 import pyautogui
2054 pyautogui = self.__get_configured_pyautogui(pyautogui)
2055 gui_lock = FileLock(constants.MultiBrowser.PYAUTOGUILOCK)
2056 with gui_lock:
2057 self.__make_sure_pyautogui_lock_is_writable()
2058 pyautogui.write(text)
2059 self.__slow_mode_pause_if_set()
2060 self.loop.run_until_complete(self.page.sleep(0.025))
2061
2062 def __gui_click_x_y(self, x, y, timeframe=0.27, uc_lock=False):
2063 self.__install_pyautogui_if_missing()

Callers

nothing calls this directly

Calls 6

writeMethod · 0.80
sleepMethod · 0.45

Tested by

no test coverage detected