EACCES error when initialising selenium-webdriver on a Chromebook

274 views
Skip to first unread message

Daniel Lindley

unread,
Oct 13, 2015, 8:18:00 AM10/13/15
to Selenium Users

I'm trying to run a simple selenium test on a Chromebook but I'm currently getting an EACCES error when starting the test. The Chromebook is in developer mode so I'm able to install some software on there.

 

I've installed the selenium-webdriver package via npm and then written a small node application using the example in the selenium source:

 

var webdriver = require('selenium-webdriver'),
    By = webdriver.By,
    until = webdriver.until;

var driver = new webdriver.Builder()
    .forBrowser('firefox')
    .build();

driver.get('http://www.google.com/ncr');
driver.findElement(By.name('q')).sendKeys('webdriver');
driver.findElement(By.name('btnG')).click();
driver.wait(until.titleIs('webdriver - Google Search'), 1000);
driver.quit();

 

I've also downloaded the latest version of ChromeDriver (2.19) and added it to the PATH. When I try and run the above script as root I get an EACCES error, and the following stack trace:

 

 




































Following the exact same process on Ubuntu (with the exception of node and npm being installed via apt-get) worked without any issues.

 

Has anybody else had a similar issue with Chrome OS? If not, I'd also be really interested to hear if anybody has had any success running Selenium tests on a Chromebook. 

David

unread,
Oct 14, 2015, 12:26:14 AM10/14/15
to Selenium Users
+1, would be good to know.

Krishnan Mahadevan

unread,
Oct 14, 2015, 1:28:43 AM10/14/15
to Selenium Users
Daniel,

I have never played around with chromebook (maybe now I will, by setting it up as a VM).
But from my googling, I understand that a "eacces" error is always related to "either a particular process not being available (or) the process exists but necessary permissions dont".

In this case, I noticed that your test code seems to be trying to spawn "Firefox". I believe on ChromeBook you dont get to install any other browser apart from Chrome.

So you should be changing this line

var driver = new webdriver.Builder()
    .forBrowser('firefox')
    .build();


to
var driver = new webdriver.Builder()
    .forBrowser('chrome')
    .build();


and then try again.

My guess is, that should take care of fixing the problem. The reason why this works on Ubuntu is because Ubuntu already has firefox installed on it.

See if that helps you out !



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f021949b-486f-4cc9-b350-4a1d383c2bed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Lindley

unread,
Oct 14, 2015, 5:40:44 AM10/14/15
to Selenium Users
Hi Krishnan, 

Thank you for taking the time to respond to this.

Unfortunately changing to 'chrome' has exactly the same issue. I had tried that initially but the same error seems to be produced for 'chrome' and 'firefox'. However, I will change it back to 'chrome' now for future updates.

My concern is that this is a Chrome OS specific issue. By default the file system is completely locked down and various steps need to be taken to allow any changes to be made. I've completed all of these steps and run the test as root, but still seem to get permissions errors.

Thanks, 

Dan

Krishnan Mahadevan

unread,
Oct 14, 2015, 11:32:07 PM10/14/15
to Selenium Users
Daniel,

In that case, I am out of options. I guess I will side step and wait for someone else to help respond back to your problem.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages