Skip to content

Commit 8e9757e

Browse files
committed
Fix a few typos
1 parent c314474 commit 8e9757e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

seleniumbase/core/detect_b_ver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def opera_on_windows_path(browser_type=None):
282282
"Opera/Application",
283283
):
284284
try:
285-
candidates.append(os.sep.join((item, subitem, "launcher.exe")))
285+
candidates.append(os.sep.join((item, subitem, "opera.exe")))
286286
except TypeError:
287287
pass
288288
for candidate in candidates:

seleniumbase/fixtures/js_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ def scroll_to_element(driver, element):
12781278
try:
12791279
screen_width = driver.get_window_size()["width"]
12801280
except Exception:
1281-
screen_width = execute_script("return window.innerWidth;")
1281+
screen_width = execute_script(driver, "return window.innerWidth;")
12821282
element_location_y = element_location_y - constants.Scroll.Y_OFFSET
12831283
if element_location_y < 0:
12841284
element_location_y = 0
@@ -1327,7 +1327,7 @@ def slow_scroll_to_element(driver, element, *args, **kwargs):
13271327
try:
13281328
screen_width = driver.get_window_size()["width"]
13291329
except Exception:
1330-
screen_width = execute_script("return window.innerWidth;")
1330+
screen_width = execute_script(driver, "return window.innerWidth;")
13311331
element_location_y = element_location_y - constants.Scroll.Y_OFFSET
13321332
if element_location_y < 0:
13331333
element_location_y = 0

0 commit comments

Comments
 (0)