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

Dom tree updates #632

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Dom tree updates #632

merged 1 commit into from
Jul 23, 2024

Conversation

ykeremy
Copy link
Contributor

@ykeremy ykeremy commented Jul 23, 2024

<!-- ELLIPSIS_HIDDEN -->
🚀 This description was created by Ellipsis for commit 6bb58e3

Summary:

Enhanced handling of disabled elements and expanded interactable elements in skyvern/webeye/scraper/domUtils.js.

Key points:

  • File Modified: skyvern/webeye/scraper/domUtils.js
  • Function Updated: isHiddenOrDisabled
    • Now checks if element.disabled is explicitly defined before evaluating its value.
  • Function Updated: isInteractable
    • Added a and i tags to the list of elements that can be interactable based on their computed style.

Generated with ❤️ by ellipsis.dev

@ykeremy ykeremy added the sync label Jul 23, 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.

❌ Changes requested. Reviewed everything up to ad521b3 in 1.0 minute and 6.404194000000004 seconds

More details
  • Looked at 31 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_qfCd7xFweF3XEC2x


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

skyvern/webeye/scraper/domUtils.js Outdated Show resolved Hide resolved
skyvern/webeye/scraper/domUtils.js Outdated Show resolved Hide resolved
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.

❌ Changes requested. Incremental review on ad521b3 in 1.0 minute and 11.098577000000006 seconds

More details
  • Looked at 30 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_V0o9zEidm272oOvV


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

skyvern/webeye/scraper/domUtils.js Outdated Show resolved Hide resolved
<!-- ELLIPSIS_HIDDEN -->

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

### Summary:
Enhanced handling of disabled elements and expanded interactable elements in `skyvern/webeye/scraper/domUtils.js`.

**Key points**:
- **File Modified**: `skyvern/webeye/scraper/domUtils.js`
- **Function Updated**: `isHiddenOrDisabled`
  - Now checks if `element.disabled` is explicitly defined before evaluating its value.
- **Function Updated**: `isInteractable`
  - Added `a` and `i` tags to the list of elements that can be interactable based on their computed style.

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

<!-- ELLIPSIS_HIDDEN -->
@ykeremy ykeremy force-pushed the ykeremy/dom-updates branch from ad521b3 to 6bb58e3 Compare July 23, 2024 10:52
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.

❌ Changes requested. Incremental review on 6bb58e3 in 1.0 minute and 1.2018369999999976 seconds

More details
  • Looked at 24 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_3gobnnOOgmtQZjkl


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

const computedStyle = window.getComputedStyle(element);
const hasPointer = computedStyle.cursor === "pointer";
const hasCursor = computedStyle.cursor === "cursor";
return hasPointer || hasCursor;
return hasPointer;
Copy link
Contributor

Choose a reason for hiding this comment

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

The update to isInteractable to include a and i tags only checks for the cursor being 'pointer'. Consider expanding this to check for other interactive attributes or styles, especially for a tags which are often interactable with different cursor styles.

@ykeremy ykeremy merged commit 24a571a into main Jul 23, 2024
2 checks passed
@ykeremy ykeremy deleted the ykeremy/dom-updates branch July 23, 2024 11:02
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.

1 participant