Start a browser


#1

Hi,

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


#2

I’ve used https://circleci.com/docs/browser-debugging with no luck. I get channel 3: open failed: connect failed: Connection refusederrors.

When I run google-chrome I get

google-chrome
[20677:20677:1222/085556:ERROR:browser_main_loop.cc(173)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[20677:20677:1222/085556:ERROR:browser_main_loop.cc(219)] Gtk: Locale not supported by C library.
	Using the fallback 'C' locale.
Xlib:  extension "RANDR" missing on display ":99".
[20677:20677:1222/085556:ERROR:browser_main_loop.cc(219)] GLib-GObject: Attempt to add property GtkSettings::gtk-label-select-on-focus after class was initialised
[20677:20677:1222/085556:ERROR:browser_main_loop.cc(219)] GLib-GObject: Attempt to add property GtkSettings::gtk-entry-select-on-focus after class was initialised
[20677:20677:1222/085556:ERROR:browser_main_loop.cc(219)] 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/085556:ERROR:nacl_helper_linux.cc(303)] 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


#3

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.


#4

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


#5

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!


#6