Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

illegalAccessError while using chromedriver with selenuim Empty illegalAccessError while using chromedriver with selenuim

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
avatar
ashish_techie
Amateur
Amateur
Posts : 73
Join date : 2011-08-09

illegalAccessError while using chromedriver with selenuim Empty Re: illegalAccessError while using chromedriver with selenuim

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
avatar
devaraj
Posts : 3
Join date : 2013-02-27

illegalAccessError while using chromedriver with selenuim Empty Re: illegalAccessError while using chromedriver with selenuim

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

illegalAccessError while using chromedriver with selenuim Empty Re: illegalAccessError while using chromedriver with selenuim

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