Releases: seleniumbase/SeleniumBase
Releases · seleniumbase/SeleniumBase
Allow URLS that start with "://" for open(URL)
This fixes #494
Allow URLS that start with ://
for the open(URL)
method
If you copy/paste a URL such as ://google.com
into a web browser, the browser automatically converts the URL to https://google.com
. But if you use the webdriver get(URL)
method for URLs that start with ://
, you'll get the following error:
selenium.common.exceptions.WebDriverException:
Message: unhandled inspector error:
{"code":-32000,"message":"Cannot navigate to invalid URL"}
Now the SeleniumBase open(URL)
method (which wraps driver.get
) automatically adds the https
to URLs that start with ://
to prevent the error.
As a bonus, you can now make your Python code lines 5 characters shorter if they use the open(URL)
method for https
URLs.
Automated Visual Testing (2nd edition)
Automated Visual Testing (2nd edition)
- Improve automated visual testing
- Better handling of page scrolling to elements
- Better exception handling around log folders
- Update pytest and wheel
See https://github.com/seleniumbase/SeleniumBase/tree/master/examples/visual_testing for examples and the ReadMe!
Refresh "wheel" and "tqdm" dependencies
Update Python dependencies:
wheel>=0.34.1
tqdm>=4.42.0
Refresh Python dependencies
Refresh Python dependencies:
pip>=20.0.2
setuptools-scm>=3.4.3
packaging>=20.1
pdfminer.six==20200124;python_version>="3.5"
Treat the new Chromium Edge browser like Chrome
Treat the new Chromium Edge browser like Chrome
- Because Edge is Chromium-based now, it works like Chrome
Also Update pip
, urllib3
, and pdfminer.six
dependencies:
- pip>=20.0.1
- urllib3==1.25.8
- pdfminer.six==20200121;python_version>="3.5"
Update Python dependencies
Update Python dependencies:
- pytest>=5.3.4
- setuptools>=45.1.0;python_version>="3"
- setuptools-scm>=3.4.2
Improve demo-mode on mobile device tests
Improve demo-mode on mobile device tests
Update the XPath-to-CSS converter
Update the XPath-to-CSS_Selector converter
Improve ``select_option_by_*()`` methods
Improve select_option_by_*()
methods
- Improve
select_option_by_text(SELECTOR, TEXT)
- Improve
select_option_by_index(SELECTOR, INDEX)
- Improve
select_option_by_value(SELECTOR, VALUE)
- Also update
pytest
andsetuptools-scm
dependencies
Small updates / Improve reliability
Small updates / Improve reliability:
- Update get_page_title() and combine get_title() into it
- Add skip_test() to avoid using the camelCase version
- Improve reliability for the html_inspector