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

trim element tree bugfix #744

Merged
merged 1 commit into from
Aug 28, 2024
Merged

trim element tree bugfix #744

merged 1 commit into from
Aug 28, 2024

Conversation

LawyZheng
Copy link
Collaborator

@LawyZheng LawyZheng commented Aug 28, 2024

🚀 This description was created by Ellipsis for commit fe5a48e

Summary:

Fixes a bug in trim_element_tree to ensure id is deleted only if it exists and the element is not interactable in skyvern/webeye/scraper/scraper.py.

Key points:

  • File Modified: skyvern/webeye/scraper/scraper.py
  • Function Affected: trim_element_tree
  • Bug Fix: Modify condition to delete id key only if it exists and element is not interactable.
  • Previous Behavior: Deleted id key if element was not interactable, regardless of id existence.
  • New Behavior: Checks for id existence before deletion when element is not interactable.

Generated with ❤️ by ellipsis.dev

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 fe5a48e in 9 seconds

More details
  • Looked at 14 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/webeye/scraper/scraper.py:464
  • Draft comment:
    The condition change ensures 'id' is only deleted if it exists and the element is not interactable, preventing potential KeyErrors.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The change in the condition ensures that 'id' is only deleted if it exists and the element is not interactable. This seems to be a bug fix to prevent deletion of 'id' when it doesn't exist, which is a logical improvement.

Workflow ID: wflow_KfoY6KZMOFyW7fjz


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

@LawyZheng LawyZheng merged commit 8c57695 into main Aug 28, 2024
2 checks passed
@LawyZheng LawyZheng deleted the lawy/fix-trim-tree-bug branch August 28, 2024 09:03
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.

1 participant