Skip to content

Commit b63629c

Browse files
committed
Update variable-naming
1 parent 70da8fb commit b63629c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

seleniumbase/core/browser_launcher.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import urllib3
66
import warnings
77
from selenium import webdriver
8-
from selenium.webdriver.chrome.service import Service as Chrome_Service
9-
from selenium.webdriver.edge.service import Service as Edge_Service
10-
from selenium.webdriver.firefox.service import Service as Firefox_Service
8+
from selenium.webdriver.chrome.service import Service as ChromeService
9+
from selenium.webdriver.edge.service import Service as EdgeService
10+
from selenium.webdriver.firefox.service import Service as FirefoxService
1111
from seleniumbase.config import settings
1212
from seleniumbase.core import download_helper
1313
from seleniumbase.core import proxy_helper
@@ -123,7 +123,7 @@ def _repair_chromedriver(chrome_options, headless_options):
123123
)
124124
try:
125125
if selenium4:
126-
service = Chrome_Service(
126+
service = ChromeService(
127127
executable_path=LOCAL_CHROMEDRIVER)
128128
driver = webdriver.Chrome(
129129
service=service,
@@ -1150,7 +1150,7 @@ def get_local_driver(
11501150
else:
11511151
if os.path.exists(LOCAL_GECKODRIVER):
11521152
if selenium4:
1153-
service = Firefox_Service(
1153+
service = FirefoxService(
11541154
executable_path=LOCAL_GECKODRIVER)
11551155
return webdriver.Firefox(
11561156
service=service,
@@ -1431,7 +1431,7 @@ def get_local_driver(
14311431
edge_options.add_argument(chromium_arg_item)
14321432
if selenium4:
14331433
try:
1434-
service = Edge_Service(executable_path=LOCAL_EDGEDRIVER)
1434+
service = EdgeService(executable_path=LOCAL_EDGEDRIVER)
14351435
driver = Edge(service=service, options=edge_options)
14361436
except Exception as e:
14371437
auto_upgrade_edgedriver = False
@@ -1459,7 +1459,7 @@ def get_local_driver(
14591459
if not _was_chromedriver_repaired(): # Works for Edge
14601460
_repair_edgedriver(edge_version)
14611461
_mark_chromedriver_repaired() # Works for Edge
1462-
service = Edge_Service(executable_path=LOCAL_EDGEDRIVER)
1462+
service = EdgeService(executable_path=LOCAL_EDGEDRIVER)
14631463
driver = Edge(service=service, options=edge_options)
14641464
return driver
14651465
else:
@@ -1636,7 +1636,7 @@ def get_local_driver(
16361636
try:
16371637
if os.path.exists(LOCAL_CHROMEDRIVER):
16381638
if selenium4:
1639-
service = Chrome_Service(
1639+
service = ChromeService(
16401640
executable_path=LOCAL_CHROMEDRIVER)
16411641
driver = webdriver.Chrome(
16421642
service=service,
@@ -1715,7 +1715,7 @@ def get_local_driver(
17151715
_mark_chromedriver_repaired()
17161716
if os.path.exists(LOCAL_CHROMEDRIVER):
17171717
if selenium4:
1718-
service = Chrome_Service(
1718+
service = ChromeService(
17191719
executable_path=LOCAL_CHROMEDRIVER)
17201720
driver = webdriver.Chrome(
17211721
service=service,

0 commit comments

Comments
 (0)