w3c / w3c/webdriver

Missing tasks in parallel steps in WebDriver

Open
#1,876 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

While crawling WebDriver, the following algorithms fire an event, or resolve or reject a Promise, within a step that runs in parallel without first queuing a task:

  • The algorithm that starts with "The remote end steps, given session, URL variables and parameters are:" resolves/rejects a promise directly in a step that runs in parallel
  • The algorithm that starts with "The remote end steps, given session, URL variables and parameters are:" resolves/rejects a promise directly in a step that runs in parallel

See Dealing with the event loop in the HTML specification for guidance on how to deal with algorithm sections that run in parallel.

Cc @dontcallmedom @tidoust

This issue was detected and reported semi-automatically by Strudy based on data collected in webref.

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

Start with the WebDriver execute-script and execute-async-script algorithms linked in the issue, then read HTML's “Dealing with the event loop” guidance. Check each remote end steps section for promise resolution or rejection inside an in-parallel step. Done means both algorithms follow the required task-queuing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.