Skip to content

Commit ce22815

Browse files
committed
Do some refactoring
1 parent 1718717 commit ce22815

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,9 @@ def extend_driver(
285285
if proxy_auth:
286286
# Proxy needs a moment to load in Manifest V3
287287
if use_uc:
288-
time.sleep(0.12)
288+
time.sleep(0.14)
289289
else:
290-
time.sleep(0.22)
290+
time.sleep(0.28)
291291
return driver
292292

293293

seleniumbase/core/sb_cdp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,9 +1695,9 @@ def gui_drag_drop_points(self, x1, y1, x2, y2, timeframe=0.35):
16951695
self.set_window_rect(win_x, win_y, width, height)
16961696
self.__add_light_pause()
16971697
x1 = x1 * width_ratio
1698-
y1 = y1 * width_ratio
1698+
y1 = y1 * (width_ratio - 0.02)
16991699
x2 = x2 * width_ratio
1700-
y2 = y2 * width_ratio
1700+
y2 = y2 * (width_ratio - 0.02)
17011701
self.bring_active_window_to_front()
17021702
self.__gui_drag_drop(
17031703
x1, y1, x2, y2, timeframe=timeframe, uc_lock=False

0 commit comments

Comments
 (0)