diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e3f6ebda..03506e16 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,6 +7,7 @@ v3.1.1 *Release date: In development* - Upgrade Sphinx version from 4.* to 7.* to fix readthedocs theme format +- Fix on swipe method. Duration from None to 0. v3.1.0 ------ diff --git a/toolium/utils/driver_utils.py b/toolium/utils/driver_utils.py index 698cbdeb..9e76a77a 100644 --- a/toolium/utils/driver_utils.py +++ b/toolium/utils/driver_utils.py @@ -324,7 +324,7 @@ def get_native_coords(self, coords): self.logger.debug('Converted web coords %s into native coords %s', coords, native_coords) return native_coords - def swipe(self, element, x, y, duration: int = 0): + def swipe(self, element, x, y, duration=0): """Swipe over an element :param element: either a WebElement, PageElement or element locator as a tuple (locator_type, locator_value)