Changelogs » Seleniumbase

Seleniumbase

1.29.1

Update the requirements

1.29.0

Update browser options:
* Add a command-line option to maximize the browser window at startup
* Update the default Chrome switches to prevent unwanted infobars

1.28.3

* Update the example test and console scripts "seleniumbase mkdir"

1.28.2

Use shutil.move() instead of os.rename()
* This is used for downloading the selenium server and placing it in the correct directory

Although os.rename() and shutil.move() will both rename files, the command that is closest to the Unix mv command is shutil.move(). The difference is that os.rename() doesn't work if the source and destination are on different disks, while shutil.move() doesn't care what disk the files are on.

1.28.1

Update the custom settings parser

1.28.0

* Add a settings file parser for overriding default SeleniumBase settings


pytest my_first_test.py --settings=custom_settings.py

1.27.1

* Update examples
* Use pytest >= 4.6.5 on Python 2 (Python 3 uses pytest >= 5.0.1)
* Update console scripts test generator

1.27.0

* Add the "sb" pytest fixture

Usage examples:

python
"sb" pytest fixture test in a method with no class
def test_sb_fixture_with_no_class(sb):
sb.open("https://google.com/ncr")
sb.update_text('input[title="Search"]', 'SeleniumBase\n')
sb.click('a[href*="github.com/seleniumbase/SeleniumBase"]')
sb.click('a[title="seleniumbase"]')


"sb" pytest fixture test in a method inside a class
class Test_SB_Fixture():
def test_sb_fixture_inside_class(self, sb):
sb.open("https://google.com/ncr")
sb.update_text('input[title="Search"]', 'SeleniumBase\n')
sb.click('a[href*="github.com/seleniumbase/SeleniumBase"]')
sb.click('a[title="examples"]')

1.26.4

* Adding w3c ChromeDriver support.
* Better error handling for scrolling actions.
* ``seleniumbase install chromedriver`` now installs ChromeDriver version 2.44 by default.

1.26.3

Use a customized virtual display in headless mode
* This removes the pyvirtualdisplay requirement
* This also makes tests run much faster in headless mode

1.26.2

Update pyotp lib and ``seleniumbase mkdir`` command
* Update pyotp to >=2.3.0
* Have the ``seleniumbase mkdir`` script create an extra example test.

1.26.1

Add ability to set initial URL with ``--start_page=URL`` or ``--url=URL`` cmd option

1.26.0

Make --headless mode the default setting on Linux

1.25.6

Improve the export feature for website tours

1.25.5

Optimize selector detection and usage

1.25.4

Small updates to reliability and logging
* Update demo-mode reliability
* Update logging level for "requests" and "urllib3"

1.25.3

Fix pytest-html reports on Windows
* Use pytest-html==1.20.0 (later versions have errors on Windows)

1.25.2

Refactor command-line arguments

1.25.1

Allow a comma-separated list of Chrome extensions to load on the command line.

1.25.0

Add command-line arguments for Chrome customization:
* --enable_sync  ->  (Enable Chrome Sync)
* --user_data_dir=DIR  ->  (Set the Chrome Profile / User-Data-Dir to use)
* --extension_zip=FILE.zip  ->  (Load a Chrome Extension via ZIP file)
* --extension_dir=DIR  ->  (Load a Chrome Extension via folder)

1.24.1

Pytest update and refactoring
* Use pytest>=4.6.4
* Add get_element() for method name standardization
* Refactoring
* Update npm "express" version for the web integration

1.24.0

Standardize methods
* Update method parameter names
* Update a few methods
* Add a few new methods

1.23.16

Timeout feature
* Add pytest-timeout to requirements.
* Update a few other requirements.
* Disable urllib3 warnings

1.23.15

Update default Chrome options

1.23.14

Mostly headless-mode updates:
* Make headless Chrome more reliable in Docker environments
* Update pytest requirements

1.23.13

Pytest update:
* Use pytest >= 4.6.2

1.23.12

Performance improvements
* Switch to Cloudflare CDN for jQuery
* Update urllib3, requests, and pluggy versions
-- urllib3==1.25.3
-- requests>=2.22.0
-- pluggy>=0.12.0

1.23.11

Update requirements

Updated Python requirements:
* setuptools>=41.0.1
* certifi>=2019.3.9
* PyVirtualDisplay==0.2.1

jQuery:
* 3.4.1

1.23.10

Use pytest>=4.5.0
* Also ignore pytest warnings such as PytestUnknownMarkWarning, which caused warnings to appear for test-specific markers

1.23.9

Update pytest version and other requirements
* pytest>=4.4.2
* pytest-cov>=2.7.1
* pluggy>=0.11.0
* pip>=19.1.1