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 calledself.assertRaises()
without areturn
.) - Add
self.assert_in()
andself.assert_not_in()
:
-- (These are duplicates forself.assertIn()
andself.assertNotIn()
.) - Refresh Python dependencies:
--pip>=21.2.3;python_version>="3.6"
--wheel>=0.37.0
--virtualenv>=20.7.1