Version 2.4.0
v2.4.0
Release date: 2025-01-10
Added
DriverWrapper.is_safarimethodDriverWrapper.is_firefoxmethodDriverWrapper.is_chromemethodInvalidLocatorExceptionfor locator validationVisualComparisonnow removes actual and diff files upon successful assertions- Internal CI pipelines with tests
Removed
DriverWrapper.switch_to_parent_framemethoddyatel/dyatel_play/helpers/trace.pymodule
Changed
DriverWrapper.get_inner_window_sizenow returns aSizeobject instead of a dictionaryElement.clicknow uses a JavaScript click for the Safari driverElement.click_outsidenow has default argumentsx=-5, y=-5across all platformsVisualComparisondummy elementsstyle.positionchanged from"fixed"to"absolute"VisualComparisondummy elementsstyle.top/leftnow account for page scrollVisualComparisonnow includes asleep(0.1)delay iffill_backgroundorremoveactions are specified after an action- The Safari browser on Appium and Selenium uses the
innerTextDOM property instead of the driver'stextAPI to improve compatibility with other platforms - The Safari browser on Selenium uses JavaScript-based
clickinstead of the driver'sclickAPI to enhance compatibility with other platforms - Documentation for most methods has been improved
Fixed
DriverWrapper.save_screenshotno longer throws an error when called without the optionalscreenshot_baseargumentElement.save_screenshotno longer throws an error when called without the optionalscreenshot_baseargumentVisualComparison.assert_screenshotwith the argumentthreshold=0now respects the provided value instead of defaultingVisualComparisonundersoft_generate_referenceno longer takes two images (actual → assertion → reference)