Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Selenium WebDriver Integration
Today at 1:06 pm by azharuddin

» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

illegalAccessError while using chromedriver with selenuim

View previous topic View next topic Go down

illegalAccessError while using chromedriver with selenuim

Post by cloudeus 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

cloudeus

Posts : 1
Join date : 2012-09-30

Back to top Go down

Re: illegalAccessError while using chromedriver with selenuim

Post by ashish_techie 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

ashish_techie
Amateur
Amateur

Posts : 73
Join date : 2011-08-09

Back to top Go down

Re: illegalAccessError while using chromedriver with selenuim

Post by devaraj 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

devaraj

Posts : 3
Join date : 2013-02-27

Back to top Go down

Re: illegalAccessError while using chromedriver with selenuim

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


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