Selenium Webdriver running on a Chromebook

1,188 views
Skip to first unread message

Francis Brennan

unread,
Jun 11, 2013, 3:19:05 PM6/11/13
to chromium-...@chromium.org
As a proof of concept, I've been working on getting selenium server installed and running on a Samsung Chromebook and have had quite a bit of success, but I need a pointer to make it past the final hurdle.

So far, after disabling rootfs verification, I successfully installed a JDK on the Chromebook as well as a build of Chromedriver, both compiled for Linux on ARM.  I can successfully launch and communicate with the running selenium server jar and Chromedriver binary, but I haven't been able to get Chromedriver to either attach to an already running instance of Chrome or to launch a new instance.

I've been poking around attempting to launch new Chrome instances from the console with params copied both from already running processes as well as my own, but they are always immediately terminated/aborted.  What am I missing?  Has anyone written a shell script, for example, that launches a new browser instance into either a new session or an existing user's session?  If not, can someone give me a pointer to relevant source code for launching user chrome sessions that I can take a look at?

Best,
Francis


Mike Frysinger

unread,
Jun 12, 2013, 11:45:31 PM6/12/13
to fbre...@netflix.com, Chromium OS discuss
On Tue, Jun 11, 2013 at 3:19 PM, Francis Brennan <fbre...@netflix.com> wrote:
So far, after disabling rootfs verification, I successfully installed a JDK on the Chromebook as well as a build of Chromedriver, both compiled for Linux on ARM.

i'm not sure why you'd have to change the rootfs verification.  do you just mean you put it into dev mode ?  seems like you should be able to keep rootfs verification enabled and install everything you want into /usr/local ...

 I can successfully launch and communicate with the running selenium server jar and Chromedriver binary, but I haven't been able to get Chromedriver to either attach to an already running instance of Chrome or to launch a new instance.

I've been poking around attempting to launch new Chrome instances from the console with params copied both from already running processes as well as my own, but they are always immediately terminated/aborted.  What am I missing?  Has anyone written a shell script, for example, that launches a new browser instance into either a new session or an existing user's session?  If not, can someone give me a pointer to relevant source code for launching user chrome sessions that I can take a look at? 

the appearance of windows when running ChromeOS might be misleading.  in reality, there is only one Chrome instance there and it's acting as the window manager.  so when you create new windows (CTRL+N), that's all Chrome doing things.  you can't launch more than one Chrome instance in a single X server.

you could probably start a new X server and launch whatever you want in that.  this is how Crouton works for example.  then flip between the VTs on the fly.

otherwise, i know nothing about selenium, or what this "Chromedriver" is that you refer to.
-mike

Sonny Rao

unread,
Jun 13, 2013, 12:39:30 AM6/13/13
to Mike Frysinger, fbre...@netflix.com, Chromium OS discuss, dennis...@chromium.org
+dennisjeffrey - might know
> --
> --
> Chromium OS discuss mailing list: chromium-...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-os-discuss?hl=en
>
>
>
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages