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

Error Handling #14

Open
tbostic32 opened this issue Nov 16, 2020 · 0 comments
Open

Error Handling #14

tbostic32 opened this issue Nov 16, 2020 · 0 comments

Comments

@tbostic32
Copy link
Collaborator

From conversation:

Error Handling

  • Never Error Out: Record when errors occurred (on what elements and during which actions), but should always be able to complete its search (try all events on all discovered interactive elements)
  • Config option to allow fatal erroring?
  • Define some custom exceptions for different errors that occur
  • Bubbling errors to the builder
  • WebAccess State Manager?

Errors to handle: -- Doing this for public functions only

  • WebAccess::capture_screenshot
    • Could not capture screenshot (this can happen with a pdf for example)
  • WebAccess::load
    • Failed to load url.
    • Failed to save dom to local.
    • Failed to load initial state from local.
    • Page did not have valid dom.
      • Try to fix the dom?
  • WebAccess::perform_action_on_element
    • This element doesn't exist on the page.
    • This element exists but isn't reachable.
      • Try dismissing popups
    • Selenium: Timed out performing this action.
      • Try again?
    • Selenium: Could not interact with this element.
    • This action tried to inject JavaScript that did not run correctly.
    • This action tried to load a new page, but the page timed out (Okay for now since we don't care so much about stub states).
    • This action loaded a new page that did not have a valid dom.
  • WebAccess::set_state
    • Failed to load initial state. Could be a problem with the local server?
    • Could not follow path to target state
  • WebAccess::run_js
    • Selenium: Failed to run JavaScript
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

No branches or pull requests

1 participant