Skip to content

Releases: seleniumbase/SeleniumBase

Update the requirements

17 Aug 06:56
b93af1c
Compare
Choose a tag to compare

Update the requirements

Update browser options

14 Aug 05:46
181bef9
Compare
Choose a tag to compare

Update browser options:

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

Update example test and a console scripts command

13 Aug 06:38
751d5de
Compare
Choose a tag to compare
  • Update the example test and console scripts "seleniumbase mkdir"

Use shutil.move() instead of os.rename()

10 Aug 04:19
805682c
Compare
Choose a tag to compare

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

09 Aug 14:04
3d37c16
Compare
Choose a tag to compare

Update the custom settings parser

Add a settings file parser for overriding default settings

09 Aug 08:57
379dc50
Compare
Choose a tag to compare
  • 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

06 Aug 05:49
255359d
Compare
Choose a tag to compare
  • 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

02 Aug 06:34
c381b52
Compare
Choose a tag to compare
  • 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

01 Aug 05:55
d6fc08c
Compare
Choose a tag to compare
  • 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

30 Jul 07:17
6e19297
Compare
Choose a tag to compare

Use a customized virtual display in headless mode

  • This removes the pyvirtualdisplay requirement
  • This also makes tests run much faster in headless mode