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

Method gui_hover_element

seleniumbase/core/sb_cdp.py:2789–2804  ·  view source on GitHub ↗
(self, selector, timeframe=0.27)

Source from the content-addressed store, hash-verified

2787 self.__gui_hover_x_y(x, y, timeframe=timeframe, uc_lock=False)
2788
2789 def gui_hover_element(self, selector, timeframe=0.27):
2790 try:
2791 self.__verify_pyautogui_has_a_headed_browser()
2792 except Exception:
2793 self.hover_element(selector, timeframe=timeframe)
2794 return
2795 self.__slow_mode_pause_if_set()
2796 element_rect = self.get_gui_element_rect(selector)
2797 width = element_rect["width"]
2798 height = element_rect["height"]
2799 if width > 0 and height > 0:
2800 x, y = self.get_gui_element_center(selector)
2801 self.bring_active_window_to_front()
2802 self.__gui_hover_x_y(x, y, timeframe=timeframe, uc_lock=False)
2803 self.__slow_mode_pause_if_set()
2804 self.loop.run_until_complete(self.page.wait(0.1))
2805
2806 def hover_element(self, selector, timeframe=0.27):
2807 element = self.select(selector)

Callers 4

gui_move_to_elementMethod · 0.95
gui_hover_and_clickMethod · 0.95
test_presentation_4Method · 0.80
raw_priceline.pyFile · 0.80

Calls 8

hover_elementMethod · 0.95
get_gui_element_rectMethod · 0.95
__gui_hover_x_yMethod · 0.95
waitMethod · 0.45

Tested by 1

test_presentation_4Method · 0.64