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

Raise screenshot error earlier when page is closed #1108

Merged

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Nov 1, 2024

Important

Raise FailedToTakeScreenshot in take_screenshot() if page.is_closed() in page.py and add TOC to workato.md.

  • Behavior:
    • In take_screenshot() in page.py, raise FailedToTakeScreenshot if page.is_closed() before attempting to take a screenshot.
  • Documentation:
    • Add table of contents to workato.md.

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

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Raise `FailedToTakeScreenshot` in `take_screenshot()` if `page.is_closed()` in `page.py`.
>
>   - **Behavior**:
>     - In `take_screenshot()` in `page.py`, raise `FailedToTakeScreenshot` if `page.is_closed()` before attempting to take a screenshot.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for 2627a3801b74877c0a64d30a67383f4a7acc901b. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
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 095d430 in 6 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/webeye/utils/page.py:43
  • Draft comment:
    Consider including the page URL or identifier in the error message for better debugging context.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The error message should be more descriptive to help with debugging.

Workflow ID: wflow_wdq1Dy7pSdvRUH7X


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! Reviewed everything up to 095d430 in 9 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/webeye/utils/page.py:43
  • Draft comment:
    Consider providing more context in the error message, such as the page URL or identifier, to aid in debugging.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The error message should be more descriptive to help with debugging.

Workflow ID: wflow_KBhtDaSqR531UDyy


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 155c5ee in 9 seconds

More details
  • Looked at 28 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. docs/integrations/workato.md:1
  • Draft comment:
    The PR description mentions changes in page.py to raise an error when a page is closed, but the diff only shows changes to this markdown file. Ensure the intended code changes are included in the PR.
  • Reason this comment was not posted:
    Comment did not seem useful.

Workflow ID: wflow_ttVQ1WzhYYgDvOEr


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

@wintonzheng wintonzheng merged commit 690dd4c into main Nov 1, 2024
2 checks passed
@wintonzheng wintonzheng deleted the shu/raise_screenshot_error_early_when_page_is_closed branch November 1, 2024 17:43
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