Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/appium_android_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- 'CHANGELOG.md'
- 'LICENSE'
- '.gitignore'
- 'mops/__init__.py'
pull_request:

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/appium_ios_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- 'CHANGELOG.md'
- 'LICENSE'
- '.gitignore'
- 'mops/__init__.py'
pull_request:

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/playwright_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- 'CHANGELOG.md'
- 'LICENSE'
- '.gitignore'
- 'mops/__init__.py'
pull_request:

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/selenium_safari_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- 'CHANGELOG.md'
- 'LICENSE'
- '.gitignore'
- 'mops/__init__.py'
pull_request:

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/selenium_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- 'CHANGELOG.md'
- 'LICENSE'
- '.gitignore'
- 'mops/__init__.py'
pull_request:


Expand Down
1 change: 1 addition & 0 deletions .github/workflows/static_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'CHANGELOG.md'
- 'LICENSE'
- '.gitignore'
- 'mops/__init__.py'
pull_request:


Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

<br>

## 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*

Expand Down
2 changes: 1 addition & 1 deletion mops/__init__.py
Original file line number Diff line number Diff line change
@@ -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'
4 changes: 1 addition & 3 deletions mops/utils/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions tests/static_tests/unit/test_wait_condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading