Skip to content

Make improvements to the "Deferred Assert" system

Compare
Choose a tag to compare
@mdmintz mdmintz released this 10 Nov 18:12
· 3651 commits to master since this release
d5e4870

Make improvements to the "Deferred Assert" system

SeleniumBase deferred asserts allow you to make multiple assertions on the same page without failing the test after the first failed assert. Instead, you can choose when to process those assertions by calling: self.process_deferred_asserts().

  • Add self.deferred_assert_exact_text()
    -- (This is similar to self.deferred_assert_text(), but text must be equal, instead of in.)
  • Fix spacing in the console output of deferred assertion failures.
  • This resolves #1065
  • Example test: SeleniumBase/examples/test_deferred_asserts.py

Also refresh Python dependencies:

  • traitlets version now only has a lower bound, instead of an exact version.
    -- (For Python versions 3.7 and newer. Earlier Python versions still use a pin.)
traitlets==4.3.3;python_version<"3.7"
traitlets>=5.1.1;python_version>="3.7"