w3c / w3c/webdriver

Can't handle a child/new window's Alert on load

Open
#955 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

  1. Launch the Parent.html
  2. Handle the Alert on it
  3. Click on the link to open the "ChildWindow" as a new window
    4. Try to handle the Alert on the "ChildWindow" ( program hangs )

Parent.html:

<script type="text/javascript"> alert("Parent Page alert"); </script> Click To open New/Child window

Child.html:

<script type="text/javascript"> alert("Child Page Alert"); </script>

This is from ChildPage.html

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

Reproduce the sequence in Parent.html and the linked child page, including both page-load alerts and the new-window transition. Start by tracing WebDriver’s alert and window-handling behavior; done means the child window’s alert can be handled without the program hanging.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.