github seleniumbase/SeleniumBase v1.63.22
Updates and refactoring

latest releases: v4.32.11, v4.32.10, v4.32.9...
3 years ago

Updates and refactoring

  • Improve and refactor sbase print FILE:
    -- Printing Markdown files is improved (Will use fancy formatting if not numbered).
    -- Older versions of Python will now print files (but not with color or line numbers).
  • Update output of sbase mkfile FILE.py:
    -- This is used to easily create a new test file:
from seleniumbase import BaseCase


class MyTestClass(BaseCase):
    def test_base(self):
        self.open("data:text/html,<p>Hello<br><input></p>")
        self.type("input", "Goodbye")  # selector, text
        self.click("body p")  # selector
        self.assert_element("html > body")  # selector
        self.assert_text("Hello", "body p")  # text, selector
  • Fix self.assert_raises():
    -- (The earlier version called self.assertRaises() without a return.)
  • Add self.assert_in() and self.assert_not_in():
    -- (These are duplicates for self.assertIn() and self.assertNotIn().)
  • Refresh Python dependencies:
    -- pip>=21.2.3;python_version>="3.6"
    -- wheel>=0.37.0
    -- virtualenv>=20.7.1

Don't miss a new SeleniumBase release

NewReleases is sending notifications on new releases.