Skip to content

Commit a2e14cc

Browse files
authored
Merge pull request #207 from seleniumbase/handle-deprecation-warnings
Handle deprecation warnings
2 parents ec7f880 + 38c1626 commit a2e14cc

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[pytest]
22
# Let console output be seen. Don't override the pytest plugin.
33
addopts = --capture=no --ignore conftest.py
4+
filterwarnings = ignore::DeprecationWarning

seleniumbase/console_scripts/sb_mkdir.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def main():
5353
data = []
5454
data.append("[pytest]")
5555
data.append("addopts = --capture=no --ignore conftest.py")
56+
data.append("filterwarnings = ignore::DeprecationWarning")
5657
file_path = "%s/%s" % (dir_name, "pytest.ini")
5758
file = codecs.open(file_path, "w+", "utf-8")
5859
file.writelines("\r\n".join(data))

seleniumbase/core/browser_launcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,13 @@ def get_local_driver(browser_name, headless, proxy_string):
257257
firefox_driver = webdriver.Firefox(
258258
firefox_profile=profile,
259259
capabilities=firefox_capabilities,
260-
firefox_options=options,
260+
options=options,
261261
executable_path=LOCAL_GECKODRIVER)
262262
else:
263263
firefox_driver = webdriver.Firefox(
264264
firefox_profile=profile,
265265
capabilities=firefox_capabilities,
266-
firefox_options=options)
266+
options=options)
267267
except WebDriverException:
268268
# Don't use Geckodriver: Only works for old versions of Firefox
269269
profile = _create_firefox_profile(downloads_path, proxy_string)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
setup(
1919
name='seleniumbase',
20-
version='1.15.7',
20+
version='1.15.8',
2121
description='All-In-One Test Automation Framework',
2222
long_description=long_description,
2323
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)