w3c / w3c/webdriver

Navigation in `execute a function body` should abort script execution

Open
#1,400 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Execute Script
Dominant language
HTML
Stars
718
Forks
228
PR merge metrics
No merged PRs in 30d

Description

If a navigation happens while a script is getting executed the script would always timeout if there isn't an early break out. As of now there is nothing listed in the Webdriver spec:

https://w3c.github.io/webdriver/#execute-script#x13-2-executing-script

With Marionette/geckodriver we currently return a JavascriptError.

CC'ing @jgraham, @andreastt, @AutomatedTester, @shs96c.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the WebDriver specification's “execute a function body” section first, then compare its stated behavior with the reported Marionette/geckodriver result. Done means the specification explicitly defines how navigation interrupts script execution and the resulting error behavior.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.