- Updated wait action to limit maximum wait time to 10 seconds
- Added clear logging when wait time is capped
- Updated action description to mention the 10-second limit
- Preserves existing behavior for wait times ≤ 10 seconds
Eliminates the guideline about scrolling with num_pages parameter
from the browser usage prompts to simplify navigation instructions.
Refactors parameter handling in registry action validation by removing
unnecessary parameter cleaning, streamlining the process.
Replaces static page statistics with dynamic calculations for
viewport and scroll position metrics. Simplifies code logic in
scroll handling by removing unnecessary defaults for page
scrolling. Improves readability and reliability of page
scroll operations by requiring explicit num_pages parameter.
Enhances page-view consistency and user interaction handling.
Eliminates an unnecessary return check for action_result
after evaluating the window height, simplifying the code
and ensuring the correct flow of the scroll retry logic.
Replaces pixel-based scrolling with page unit determination, allowing for more intuitive scroll actions by specifying the number of pages. Adjusts related documentation, examples, and tests to reflect this change for improved code consistency and user experience.
Removes special parameters from params to avoid
double keyword argument conflicts by utilizing
a separate special_context mechanism. This ensures
only essential parameters are validated in the Pydantic
action model, enhancing robustness and readability.
Removes unnecessary Field description in ScrollAction to streamline code.
Implements additional test cases for varying scroll amounts, improving test coverage and validation of scrolling behavior in the integration tests.
Introduces ability to scroll by a specific number of pixels
via a new 'amount' parameter, defaulting to one page height
if unspecified. Updates relevant documentation and examples
to reflect these changes, enhancing navigation precision.
Improves user experience by allowing finer control over page
scrolling actions.
Relates to user feedback on scroll improvements.
- Wrapped the action execution call in a try-except block to catch exceptions and return an ActionResult with the error message.
- Ensured that Laminar's output is set only if it is not None, improving the robustness of the function.