Start a browser



Is it possible to configure to run a browser without using selenium? I’m using browser-sync to run mocha tests in the browser?


I’ve used with no luck. I get channel 3: open failed: connect failed: Connection refusederrors.

When I run google-chrome I get

[20677:20677:1222/] Running without the SUID sandbox! See for more information on developing with the sandbox on.
[20677:20677:1222/] Gtk: Locale not supported by C library.
	Using the fallback 'C' locale.
Xlib:  extension "RANDR" missing on display ":99".
[20677:20677:1222/] GLib-GObject: Attempt to add property GtkSettings::gtk-label-select-on-focus after class was initialised
[20677:20677:1222/] GLib-GObject: Attempt to add property GtkSettings::gtk-entry-select-on-focus after class was initialised
[20677:20677:1222/] GLib-GObject: Attempt to add property GtkSettings::gtk-entry-password-hint-timeout after class was initialised
Fontconfig warning: ignoring UTF-8: not a valid region tag
Xlib:  extension "RANDR" missing on display ":99".
[1222/] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly
Created new window in existing browser session.

So I guess it’s possible but since I can’t debug I can’t see what’s going wrong


I turned on debug for ssh -v -v -v and managed to get it working! Now I just need to figure out why my test page doesn’t work.


I got everything setup and if I connect manually against my test page after enabling port forwarding everything works. The problem now seems how to open the page in the box. I want to access the http://localhost:9999/index.html but can’t figure out how. See above error when running google-chrome


So I’m stuck. The http server set’s everything up but then it just waits and the build times out. Trying to access the url with xvfb-run google-chrome https://localhost:9999/index.html doesn’t help.

Any ideas?

I installed run-headless-chrome which enables more chrome loggings and found out more errors!