Skip to content
Discussion options

You must be logged in to vote

Hi @Gontrum!

Have a look at the Photographer who does something similar, i.e. it retrieves the browser associated with the actor to take a screenshot.

The bit you're interested is here:

let browseTheWeb: BrowseTheWeb;
try {
browseTheWeb = BrowseTheWeb.as(stage.theActorInTheSpotlight());
} catch {
// actor doesn't have a browser, abort
return void 0;
}

Here, Stage.theActorInTheSpotlight() returns the most recently used actor.

Accessing the page

The difference between what you're trying to do and what the Photographer does is t…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jan-molak
Comment options

You must be logged in to vote
6 replies
@Gontrum
Comment options

@jan-molak
Comment options

@Gontrum
Comment options

@jan-molak
Comment options

@Gontrum
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants