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

Specify browsing context discovery #42

Closed
jgraham opened this issue Jul 1, 2020 · 4 comments
Closed

Specify browsing context discovery #42

jgraham opened this issue Jul 1, 2020 · 4 comments

Comments

@jgraham
Copy link
Member

jgraham commented Jul 1, 2020

We need a mechanism to discover which top level / other browsing contexts exist and a set of events for the browsing context lifecycle (created/destroyed/etc.).

@shs96c
Copy link

shs96c commented Oct 6, 2020

The mechanism to discover top-level browsing contexts maps cleanly to Get Window Handles.

@k7z45
Copy link
Contributor

k7z45 commented Nov 4, 2020

From ChromeDriver side, suppose DevTools is listening on a specific port say 64266.
We would first query http://localhost:64266/json/list via http for the top level browsing contexts and then we have a
navigation tracker that would process the events on the same port via WebSocket for the frame related events.
For example, for child browsing context, we can listen for Page.frameAttached . The query plus the events should provide information for both top level and child browsing contexts. However, ChromeDriver does reply on continuously querying the above "json/list" for updating list of active top level browsing contexts.

Side note: I am not sure if there is an equivalent CDP command for querying http://localhost:64266/json/list via WebSocket(maybe Target.getTargets?) or if there is events we could listen for for top level browsing contexts.

@foolip
Copy link
Member

foolip commented Dec 1, 2020

This is being done in #62.

@foolip
Copy link
Member

foolip commented Apr 15, 2021

Let's called this fixed by #62.

@foolip foolip closed this as completed Apr 15, 2021
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

4 participants