Skyvern-AI / skyvern

Automate browser-based workflows with LLMs and Computer Vision
https://www.skyvern.com
GNU Affero General Public License v3.0
10.73k stars 739 forks source link

fix chain click bug #1189

Closed LawyZheng closed 1 week ago

LawyZheng commented 1 week ago

[!IMPORTANT] Fixes chain click bug by improving handling of label elements and their children in chain_click() and adding new utility functions in dom.py.

  • Behavior:
    • Fixes chain click bug in chain_click() in handler.py by adding handling for direct children of label elements and direct parent labels for non-label elements.
    • Adds find_element_in_label_children() and find_bound_label_by_direct_parent() to SkyvernElement in dom.py to support new behavior.
  • Logging:
    • Improves logging for label and non-label element handling in chain_click().
  • Misc:
    • Fixes typos in handler.py ("taks_id" to "task_id").

This description was created by Ellipsis for 78676e496781e41be022c200b32de8fa337a3aad. It will automatically update as commits are pushed.