github seleniumbase/SeleniumBase v2.0.7
Some updates to Visual Testing

latest releases: v4.28.3, v4.28.2, v4.28.1...
2 years ago

Some updates to Visual Testing

  • Add the full_diff option to the check_window() method:
def check_window(
    self,
    name="default",
    level=0,
    baseline=False,
    check_domain=True,
    full_diff=False,
):
    """***  Automated Visual Testing with SeleniumBase  ***
    ...
    If "full_diff" is set to False, the error output will only include the first differing element in the list comparison. Set "full_diff" to True if you want to see the full output.
  • Add the deferred version of the check_window() method:
def deferred_check_window(
    self,
    name="default",
    level=0,
    baseline=False,
    check_domain=True,
    full_diff=False,
)

This won't fail the test right away if the call fails.
Use with self.process_deferred_asserts() to fail the test later.
See https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_deferred_asserts.py for examples of other deferred_assert_* methods.

For more info on SeleniumBase Visual Testing in general, see: https://seleniumbase.io/examples/visual_testing/ReadMe/

(Watch the tutorial on YouTube)


Other changes include:

  • Refactor and improve the Dashboard code
  • Refresh Python dependencies:
    -- tomli>=1.2.2;python_version>="3.6"
    -- traitlets==5.1.1;python_version>="3.7"

Don't miss a new SeleniumBase release

NewReleases is sending notifications on new releases.