diff --git a/.github/workflows/appium_android_tests.yml b/.github/workflows/appium_android_tests.yml index 42ce743e..86f53633 100644 --- a/.github/workflows/appium_android_tests.yml +++ b/.github/workflows/appium_android_tests.yml @@ -11,6 +11,7 @@ on: - 'CHANGELOG.md' - 'LICENSE' - '.gitignore' + - 'mops/__init__.py' pull_request: jobs: diff --git a/.github/workflows/appium_ios_tests.yml b/.github/workflows/appium_ios_tests.yml index 5445547c..9b25f743 100644 --- a/.github/workflows/appium_ios_tests.yml +++ b/.github/workflows/appium_ios_tests.yml @@ -11,6 +11,7 @@ on: - 'CHANGELOG.md' - 'LICENSE' - '.gitignore' + - 'mops/__init__.py' pull_request: jobs: diff --git a/.github/workflows/playwright_tests.yml b/.github/workflows/playwright_tests.yml index 8048a51e..515aaea2 100644 --- a/.github/workflows/playwright_tests.yml +++ b/.github/workflows/playwright_tests.yml @@ -11,6 +11,7 @@ on: - 'CHANGELOG.md' - 'LICENSE' - '.gitignore' + - 'mops/__init__.py' pull_request: jobs: diff --git a/.github/workflows/selenium_safari_tests.yml b/.github/workflows/selenium_safari_tests.yml index f1e42d51..8b0064e5 100644 --- a/.github/workflows/selenium_safari_tests.yml +++ b/.github/workflows/selenium_safari_tests.yml @@ -11,6 +11,7 @@ on: - 'CHANGELOG.md' - 'LICENSE' - '.gitignore' + - 'mops/__init__.py' pull_request: jobs: diff --git a/.github/workflows/selenium_tests.yml b/.github/workflows/selenium_tests.yml index 89c7e033..21d7448b 100644 --- a/.github/workflows/selenium_tests.yml +++ b/.github/workflows/selenium_tests.yml @@ -11,6 +11,7 @@ on: - 'CHANGELOG.md' - 'LICENSE' - '.gitignore' + - 'mops/__init__.py' pull_request: diff --git a/.github/workflows/static_tests.yml b/.github/workflows/static_tests.yml index cbd45efe..46259f2a 100644 --- a/.github/workflows/static_tests.yml +++ b/.github/workflows/static_tests.yml @@ -10,6 +10,7 @@ on: - 'CHANGELOG.md' - 'LICENSE' - '.gitignore' + - 'mops/__init__.py' pull_request: diff --git a/CHANGELOG.md b/CHANGELOG.md index 54e7e691..059b0596 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@
+## v3.5.1 +*Release date: 2026-06-23* + +### Changed +- Selenium & Playwright: exponential delay starting at 0.1 seconds between requests for all waiting methods + +--- + ## v3.5.0 *Release date: 2026-04-22* diff --git a/mops/__init__.py b/mops/__init__.py index 8067f374..d8eeb6bf 100644 --- a/mops/__init__.py +++ b/mops/__init__.py @@ -1,4 +1,4 @@ """Wrapper of Selenium, Appium and Playwright with a single API.""" -__version__ = '3.5.0' +__version__ = '3.5.1' __project_name__ = 'mops' diff --git a/mops/utils/decorators.py b/mops/utils/decorators.py index e60c6247..3487284a 100644 --- a/mops/utils/decorators.py +++ b/mops/utils/decorators.py @@ -69,7 +69,6 @@ def wrapper( validate_timeout(timeout) validate_silent(silent) - should_increase_delay = self.driver_wrapper.is_appium delay = WAIT_METHODS_DELAY is_log_needed = not silent start_time = time.time() @@ -89,8 +88,7 @@ def wrapper( time.sleep(delay) - if should_increase_delay: - delay = increase_delay(delay) + delay = increase_delay(delay) result.exc._timeout = timeout raise result.exc diff --git a/tests/adata/visual/reference/test_assert_screenshot_hide_driver_elements_entire_screen_middle_hidden_macos_selenium_safari.png b/tests/adata/visual/reference/test_assert_screenshot_hide_driver_elements_entire_screen_middle_hidden_macos_selenium_safari.png index d8446103..94398878 100644 Binary files a/tests/adata/visual/reference/test_assert_screenshot_hide_driver_elements_entire_screen_middle_hidden_macos_selenium_safari.png and b/tests/adata/visual/reference/test_assert_screenshot_hide_driver_elements_entire_screen_middle_hidden_macos_selenium_safari.png differ diff --git a/tests/adata/visual/reference/test_assert_screenshot_hide_driver_elements_entire_screen_sides_hidden_macos_selenium_safari.png b/tests/adata/visual/reference/test_assert_screenshot_hide_driver_elements_entire_screen_sides_hidden_macos_selenium_safari.png index 06c068a2..99f579bb 100644 Binary files a/tests/adata/visual/reference/test_assert_screenshot_hide_driver_elements_entire_screen_sides_hidden_macos_selenium_safari.png and b/tests/adata/visual/reference/test_assert_screenshot_hide_driver_elements_entire_screen_sides_hidden_macos_selenium_safari.png differ diff --git a/tests/static_tests/unit/test_wait_condition.py b/tests/static_tests/unit/test_wait_condition.py index 1fe5cbd4..256eeb8f 100644 --- a/tests/static_tests/unit/test_wait_condition.py +++ b/tests/static_tests/unit/test_wait_condition.py @@ -139,10 +139,10 @@ def test_wait_condition_mobile_delay_increasing(): def test_wait_condition_desktop_default_delay(): """ sleep for 0.1 seconds between iterations """ - namespace = MockNamespace('wait some condition', call_count=6, is_mobile=False) + namespace = MockNamespace('wait some condition', call_count=3, is_mobile=False) start_time = time.time() namespace.wait_something() end_time = time.time() - start_time - assert end_time > 0.6 + assert end_time > 0.7 print(end_time) assert end_time < 0.75