Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark options of disabled select non-interactable #540

Merged

Conversation

ykeremy
Copy link
Contributor

@ykeremy ykeremy commented Jul 3, 2024

🚀 This description was created by Ellipsis for commit ad76ff0

Summary:

Updated isInteractable function and added handling for invalid web actions, including updates to related classes and functions.

Key points:

  • Updated isInteractable function in skyvern/webeye/scraper/domUtils.js to mark options of disabled or hidden select elements as non-interactable.
  • Added check_for_invalid_web_action function in skyvern/webeye/actions/handler.py to handle invalid web actions.
  • Modified handle_action function in skyvern/webeye/actions/handler.py to include the new invalid web action check.
  • Updated ActionResult class in skyvern/webeye/actions/responses.py to include stop_execution_on_failure attribute.
  • Adjusted agent_step function in skyvern/forge/agent.py to log warnings for failed actions that do not stop execution.

Generated with ❤️ by ellipsis.dev

<!-- ELLIPSIS_HIDDEN -->

| 🚀 | This description was created by [Ellipsis](https://www.ellipsis.dev) for commit 6859f8db0e5577c96748b3158b84db57a8617935  |
|--------|--------|

### Summary:
Updated `isInteractable` function and added handling for invalid web actions, including updates to related classes and functions.

**Key points**:
- Updated `isInteractable` function in `skyvern/webeye/scraper/domUtils.js` to mark options of disabled or hidden select elements as non-interactable.
- Added `check_for_invalid_web_action` function in `skyvern/webeye/actions/handler.py` to handle invalid web actions.
- Modified `handle_action` function in `skyvern/webeye/actions/handler.py` to include the new invalid web action check.
- Updated `ActionResult` class in `skyvern/webeye/actions/responses.py` to include `stop_execution_on_failure` attribute.
- Adjusted `agent_step` function in `skyvern/forge/agent.py` to log warnings for failed actions that do not stop execution.

----
Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev)

<!-- ELLIPSIS_HIDDEN -->
@ykeremy ykeremy added the sync label Jul 3, 2024
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to ad76ff0 in 1 minute and 7 seconds

More details
  • Looked at 173 lines of code in 5 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/webeye/actions/handler.py:112
  • Draft comment:
    The implementation of check_for_invalid_web_action returns an ActionFailure with stop_execution_on_failure set to False when an element ID is missing. This allows the execution to continue even if the action is invalid. Please confirm if this behavior is intended, as it might lead to further errors or unexpected behavior if the action sequence depends on the successful execution of previous actions.
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_PcR76mBG9VcQrJbs


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on ad76ff0 in 1 minute and 16 seconds

More details
  • Looked at 172 lines of code in 5 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/webeye/actions/handler.py:171
  • Draft comment:
    The check_for_invalid_web_action function only checks for missing elements by ID but does not handle other types of invalid actions, such as interacting with disabled elements. Consider expanding this function to handle more cases where an action might be invalid.
  • Reason this comment was not posted:
    Confidence of 40% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_tSb9H5zpZUiPuHEn


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@LawyZheng LawyZheng merged commit 22566f0 into main Jul 3, 2024
2 checks passed
@LawyZheng LawyZheng deleted the suchintan.mark-options-of-disabled-select-non-interactable branch July 3, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants