Skip to content

Commit d18bbf1

Browse files
committed
Update comments
1 parent 05b8385 commit d18bbf1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: seleniumbase/core/sb_cdp.py

+4
Original file line numberDiff line numberDiff line change
@@ -1614,6 +1614,8 @@ def __gui_drag_drop(self, x1, y1, x2, y2, timeframe=0.25, uc_lock=False):
16141614
pyautogui.dragTo(x2, y2, button="left", duration=timeframe)
16151615

16161616
def gui_drag_drop_points(self, x1, y1, x2, y2, timeframe=0.35):
1617+
"""Use PyAutoGUI to drag-and-drop from one point to another.
1618+
Can simulate click-and-hold when using the same point twice."""
16171619
gui_lock = fasteners.InterProcessLock(
16181620
constants.MultiBrowser.PYAUTOGUILOCK
16191621
)
@@ -1653,6 +1655,8 @@ def gui_drag_drop_points(self, x1, y1, x2, y2, timeframe=0.35):
16531655
self.loop.run_until_complete(self.page.wait())
16541656

16551657
def gui_drag_and_drop(self, drag_selector, drop_selector, timeframe=0.35):
1658+
"""Use PyAutoGUI to drag-and-drop from one selector to another.
1659+
Can simulate click-and-hold when using the same selector twice."""
16561660
self.__slow_mode_pause_if_set()
16571661
self.bring_active_window_to_front()
16581662
x1, y1 = self.get_gui_element_center(drag_selector)

0 commit comments

Comments
 (0)