Releases: seleniumbase/SeleniumBase
Releases · seleniumbase/SeleniumBase
Use shutil.move() instead of os.rename()
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.
Update the custom settings parser
Update the custom settings parser
Add a settings file parser for overriding default settings
- Add a settings file parser for overriding default SeleniumBase settings
pytest my_first_test.py --settings=custom_settings.py
Update examples, pytest version, and console scripts
- Update examples
- Use pytest >= 4.6.5 on Python 2 (Python 3 uses pytest >= 5.0.1)
- Update console scripts test generator
Add the "sb" pytest fixture
- Add the "sb" pytest fixture
Usage examples:
# "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"]')
Adding w3c Chromedriver support
- Adding w3c ChromeDriver support.
- Better error handling for scrolling actions.
seleniumbase install chromedriver
now installs ChromeDriver version 2.44 by default.
Use a customized virtual display in headless mode
Use a customized virtual display in headless mode
- This removes the pyvirtualdisplay requirement
- This also makes tests run much faster in headless mode
Update pyotp lib and seleniumbase mkdir command
Update pyotp lib and seleniumbase mkdir
command
- Update pyotp to >=2.3.0
- Have the
seleniumbase mkdir
script create an extra example test.
New option: Set initial URL with --start_page=URL or --url=URL
Add ability to set initial URL with --start_page=URL
or --url=URL
cmd option
Make --headless mode the default setting on Linux
Make --headless mode the default setting on Linux