Releases: seleniumbase/SeleniumBase
Add the option to generate a SeleniumBase Dashboard
Add the option to generate a SeleniumBase Dashboard
The --dashboard
option for pytest generates a SeleniumBase Dashboard located at dashboard.html
, which updates automatically as tests run and produce results.
Additionally, you can host your own SeleniumBase Dashboard Server on a port of your choice. Here's an example of that using Python 3's http.server
:
python -m http.server 1948
Now you can navigate to http://localhost:1948/dashboard.html
in order to view the served dashboard from a web browser. (Be sure to run that command in the same directory where you ran your tests.)
Here's a full example of what the SeleniumBase Dashboard may look like:
pytest test_suite.py --dashboard --rs --headless
Also update Python dependencies
pip>=20.3.3
packaging>=20.8
wheel>=0.36.2
chardet==4.0.0
requests==2.25.1
py==1.10.0
pytest==6.2.1
pytest-xdist==2.2.0
soupsieve==2.1
cryptography==3.3.1
pyopenssl==20.0.1
rich==9.4.0
Update Python dependencies
Update Python dependencies
virtualenv>=20.2.2
allure-pytest==2.8.24
Update Python dependencies
Update Python dependencies
setuptools>=51.0.0
certifi>=2020.12.5
pygments==2.7.3
allure-pytest==2.8.23
A few updates
A few updates
- Update the wheel dependency:
wheel>=0.36.1
. - Add the "pytester" plugin to make the "testdir" fixture available for unit tests.
- Fix a typo that broke nosetest functionality in the previous release.
Add the "--remote-debug" option to use Chrome's Remote Debugger
Add the "--remote-debug" option to use Chrome's Remote Debugger
- Add the
--remote-debug
option to use Chromium's Remote Debugger (from the Chrome DevTools Protocol) - Also upgrade "pip":
pip>=20.3.1
- Also make a few minor updates to
assert_title()
andget_beautiful_soup()
See https://chromedevtools.github.io/devtools-protocol/ for more info on the Chrome DevTools Protocol.
When using --remote-debug
on the command line with pytest
, you can access the Remote Debugger by going to: http://localhost:9222 while Chromedriver is running.
Update Python dependencies
Update Python dependencies
wheel>=0.36.0
rich==9.3.0
Update Python dependencies
Update Python dependencies
pip>=20.3
packaging>=20.7
pytest-metadata==1.11.0
pyopenssl==20.0.0
Add the option to include overlay text on saved images
Add the option to include overlay text on saved images
self.save_element_as_image_file(
selector, file_name, folder=None, overlay_text="")
Full example test:
from seleniumbase import BaseCase
class ImageTest(BaseCase):
def test_add_text_overlay_to_image(self):
""" Add a text overlay to an image. """
self.open("https://xkcd.com/1117/")
selector = "#comic"
file_name = "image_overlay.png"
folder = "images_exported"
overlay_text = 'This is an XKCD comic!\nTitle: "My Sky"'
self.save_element_as_image_file(
selector, file_name, folder, overlay_text)
print('"%s/%s" has been saved!' % (folder, file_name))
See https://github.com/seleniumbase/SeleniumBase/blob/master/examples/image_test.py for more examples.
Also add/update Python dependencies:
Pillow==6.2.2;python_version<"3.5"
Pillow==7.2.0;python_version>="3.5" and python_version<"3.6"
Pillow==8.0.1;python_version>="3.6"
msedge-selenium-tools==3.141.3
allure-pytest==2.8.22
Update Python dependencies
Update Python dependencies
- Remove the
importlib-metadata
dependency (Python versions >= 3.6)
(Ignore releases 1.50.10
, 1.50.11
, and 1.50.12
... the ReadMe was not rendering in PyPI, and I uploaded several releases to try to make the images render. It's not that important.)
Update Python dependencies
Update Python dependencies
importlib-metadata==3.1.0;python_version>="3.6"
cffi==1.14.4