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

ChromeRemote unable to call is_alive() #169

Open
Manestricker opened this issue Aug 21, 2024 · 3 comments
Open

ChromeRemote unable to call is_alive() #169

Manestricker opened this issue Aug 21, 2024 · 3 comments

Comments

@Manestricker
Copy link

A browser object created using a <- ChromeRemote$new(host="localhost", port=9222) is unable to call a$is_alive(). From what I understand, this is because the process is never set which results in Error in a$is_alive() : attempt to apply non-function as there is now process to call on.

@Manestricker
Copy link
Author

Manestricker commented Aug 21, 2024

The goal here is to connect to an already running instance of chrome by creating a ChromeRemote browser object, creating a new Chromote object with this browser, then creating a ChromoteSession with the parent as this Chromote object.

a <- ChromeRemote$new(host="localhost", port=9111) #creates a remote browser
bWindow <- Chromote$new(browser = a) #doesn't work because process is null
rider <- ChromoteSession$new(parent = set_default_chromote_object(bWindow))

@rpodcast
Copy link

rpodcast commented Sep 20, 2024

I'm encountering the same issue when I use a custom container powered by Apptainer to launch a chrome process via the {processx} package and trying to get the ChromeRemote session to connect to that existing process. There was no issues with this workflow in version 0.1.2 (I am running version 0.3.1 currently).

@gadenbuie
Copy link
Member

Can you share any kind of reprex @rpodcast?

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

3 participants