Share
Go down
cloudeus
Posts : 1
Join date : 2012-09-30

illegalAccessError while using chromedriver with selenuim

on Sun Sep 30, 2012 12:38 am
Hi
I am getting IllegalAccessError while using chromedriver in selenium.I have added chromedriver.exe to my path ,and also set it in java code.here is my code

Code:
System.setProperty("webdriver.chrome.driver","C:/Users/me/Documents/chromedriver/chromedriver.exe");
 WebDriver driver = new ChromeDriver();

here is the console output :

Code:
Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.openqa.selenium.remote.service.DriverService.checkExecutable(Ljava/io/File;)V from class org.openqa.selenium.chrome.ChromeDriverService
    at org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:39)
    at org.openqa.selenium.chrome.ChromeDriverService$Builder.usingDriverExecutable(ChromeDriverService.java:104)
    at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:72)
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:107)

I have also tried running the chromedriver.exe and then executing the code,still getting the error.

please help
ashish_techie
Amateur
Amateur
Posts : 73
Join date : 2011-08-09

Re: illegalAccessError while using chromedriver with selenuim

on Wed Oct 31, 2012 12:57 am
Make sure you have the latest chrome exe downloaded
Exe is separate for every OS. Make sure you have the right one

Regards
Ashish

For selenium tutorials:
www.qtpselenium.com/selenium-tutorials
devaraj
Posts : 3
Join date : 2013-02-27

Re: illegalAccessError while using chromedriver with selenuim

on Thu Feb 20, 2014 12:25 pm
Hi,

Can anyone tell me the latest chrome driver exe for windows.....?
And also please pass me the link to download latest chrome driver exe for windows

Regards,
Devaraju A T
Sponsored content

Re: illegalAccessError while using chromedriver with selenuim

Back to top
Permissions in this forum:
You cannot reply to topics in this forum