Skip to content

Commit 1506f8e

Browse files
authored
Merge pull request #507 from seleniumbase/update-reports-deps-and-settings-parsing
Update reports, custom settings parsing, and "soupsieve"
2 parents b12b64a + c8f5113 commit 1506f8e

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ pytest-ordering>=0.6
2424
pytest-rerunfailures>=8.0
2525
pytest-xdist>=1.31.0
2626
parameterized>=0.7.1
27-
soupsieve==1.9.5
27+
soupsieve==1.9.5;python_version<"3.5"
28+
soupsieve==2.0;python_version>="3.5"
2829
beautifulsoup4==4.8.2
2930
atomicwrites==1.3.0
3031
portalocker==1.5.2

seleniumbase/core/report_helper.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919
if "darwin" in PLATFORM or "linux" in PLATFORM:
2020
LOCAL_CHROMEDRIVER = DRIVER_DIR + '/chromedriver'
2121
LOCAL_GECKODRIVER = DRIVER_DIR + '/geckodriver'
22+
LOCAL_EDGEDRIVER = DRIVER_DIR + '/msedgedriver'
2223
elif "win32" in PLATFORM or "win64" in PLATFORM or "x64" in PLATFORM:
2324
LOCAL_CHROMEDRIVER = DRIVER_DIR + '/chromedriver.exe'
2425
LOCAL_GECKODRIVER = DRIVER_DIR + '/geckodriver.exe'
26+
LOCAL_EDGEDRIVER = DRIVER_DIR + '/msedgedriver.exe'
2527

2628

2729
def get_timestamp():
@@ -245,8 +247,22 @@ def build_report(report_log_path, page_results_list,
245247
firefox_profile=profile, executable_path=LOCAL_GECKODRIVER)
246248
else:
247249
browser = webdriver.Firefox(firefox_profile=profile)
250+
elif browser_type == 'edge':
251+
edge_options = webdriver.ChromeOptions()
252+
edge_options.add_experimental_option(
253+
"excludeSwitches", ["enable-automation", "enable-logging"])
254+
edge_options.add_argument("--test-type")
255+
edge_options.add_argument("--disable-infobars")
256+
if LOCAL_CHROMEDRIVER and os.path.exists(LOCAL_EDGEDRIVER):
257+
browser = webdriver.Chrome(
258+
executable_path=LOCAL_EDGEDRIVER, options=edge_options)
259+
else:
260+
browser = webdriver.Chrome(options=edge_options)
248261
else:
249262
chrome_options = webdriver.ChromeOptions()
263+
chrome_options.add_experimental_option(
264+
"excludeSwitches", ["enable-automation", "enable-logging"])
265+
chrome_options.add_argument("--test-type")
250266
chrome_options.add_argument("--disable-infobars")
251267
if LOCAL_CHROMEDRIVER and os.path.exists(LOCAL_CHROMEDRIVER):
252268
browser = webdriver.Chrome(

seleniumbase/core/settings_parser.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def set_settings(settings_file):
124124
settings.TOTP_KEY = override_settings[key]
125125
elif key == "DB_HOST":
126126
settings.DB_HOST = override_settings[key]
127+
elif key == "DB_PORT":
128+
settings.DB_PORT = override_settings[key]
127129
elif key == "DB_USERNAME":
128130
settings.DB_USERNAME = override_settings[key]
129131
elif key == "DB_PASSWORD":

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
setup(
4747
name='seleniumbase',
48-
version='1.35.7',
48+
version='1.35.8',
4949
description='Fast, Easy, and Reliable Browser Automation & Testing.',
5050
long_description=long_description,
5151
long_description_content_type='text/markdown',
@@ -106,7 +106,8 @@
106106
'pytest-rerunfailures>=8.0',
107107
'pytest-xdist>=1.31.0',
108108
'parameterized>=0.7.1',
109-
'soupsieve==1.9.5',
109+
'soupsieve==1.9.5;python_version<"3.5"',
110+
'soupsieve==2.0;python_version>="3.5"',
110111
'beautifulsoup4==4.8.2',
111112
'atomicwrites==1.3.0',
112113
'portalocker==1.5.2',

0 commit comments

Comments
 (0)