Skip to content

Add wait_for_element and retry mechanism#36

Merged
Rasukarusan merged 5 commits into
masterfrom
feature/wait-for-element
Mar 28, 2026
Merged

Add wait_for_element and retry mechanism#36
Rasukarusan merged 5 commits into
masterfrom
feature/wait-for-element

Conversation

@Rasukarusan

Copy link
Copy Markdown
Owner

Summary

  • Add wait_for_element, wait_for_clickable, wait_for_text, wait_for_url functions
  • Add generic retry wrapper function
  • Configurable timeout and polling interval
  • Clear error messages on timeout

Closes #28

Test plan

  • wait_for_element returns element when found within timeout
  • wait_for_element returns error after timeout
  • retry retries the specified number of times
  • Functions follow existing code style

Add wait/retry functions to handle dynamic page content:
- wait_for_element: poll until element is found
- wait_for_clickable: wait for element to be displayed and enabled
- wait_for_text: wait for text in page source
- wait_for_url: wait for URL pattern match
- retry: generic command retry wrapper
- is_element_displayed: new element state helper

All functions support configurable timeout/interval with bc float
support and integer-only fallback.
@Rasukarusan Rasukarusan merged commit 224d62b into master Mar 28, 2026
2 checks passed
@Rasukarusan Rasukarusan deleted the feature/wait-for-element branch March 28, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add wait_for_element and retry mechanism

1 participant