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

Xvfb support #65

Closed
sebyx07 opened this issue Apr 14, 2020 · 4 comments
Closed

Xvfb support #65

sebyx07 opened this issue Apr 14, 2020 · 4 comments

Comments

@sebyx07
Copy link
Contributor

sebyx07 commented Apr 14, 2020

Hey, I've got ferrum working with xvfb. Are you interested to have ferrum automatically handle Xvfb opening and choosing a display?

Like when you pass headless: :xfb

I could PR on this

@route
Copy link
Member

route commented Apr 14, 2020

Are you using it in headful mode to work with extensions in xvfb?

@sebyx07
Copy link
Contributor Author

sebyx07 commented Apr 14, 2020

Yeah, currently with headless: false.
I was able to pass the DISPLAY=:99 by patching your Process#start method a bit

@route
Copy link
Member

route commented Apr 14, 2020

Sounds good! Maybe someone needs it especially for extensions! Thank you!

@sebyx07
Copy link
Contributor Author

sebyx07 commented Apr 14, 2020

For extensions, I 've run ferrum, without xvfb so I could navigate the browser. Put a binding pry so It waits.

Also before had to configure the user-data-dir.

While it inside the debugger, I went to the main window, and configured extension to be available in incognito.

Closed, saved the user-data-dir, then I use it as a base for whenever I need. just cp it to a /tmp dir and set user-data-dir to the tmp dir

@route route closed this as completed May 31, 2020
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

2 participants