Selenium Jar file | Selenium Forum
M
Posted on 09/11/2016
Hi Ashish,
Can please share your selenium jar files.

Regards,
Shaheed

M
Replied on 10/11/2016

it is in your download code.

Responsive image

M
Replied on 14/11/2016

Thanks,
I copied jar files and add to my project. But I'm getting error at
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

May be I'm missing a jar file cuz, driver.manage() is not giving me timeout()


M
Replied on 15/11/2016

what is the error?


M
Replied on 15/11/2016

This is code from module 18
public void initialize() throws IOException{
if(driver == null){
// config property file
CONFIG= new Properties();
FileInputStream fn =new FileInputStream(System.getProperty("user.dir")+"//src//config/config.properties");
CONFIG.load(fn);
// OR Properties
OR= new Properties();
fn =new FileInputStream(System.getProperty("user.dir")+"//src//config/OR.properties");
OR.load(fn);
// Initalize the webdriver and EventFiringWebDriver
if(CONFIG.getProperty("browser").equals("Firefox")){
dr = new FirefoxDriver();
}else if(CONFIG.getProperty("browser").equals("IE")){
dr = new InternetExplorerDriver();
}

driver = new EventFiringWebDriver(dr);
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
}
}
getting error at very last line:
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

timeouts() method is red underlined. suggesting to add casting to driver.manage()
but normally driver.manage() should give me option for timeouts()


M
Replied on 15/11/2016

send a screen shot.


M
Replied on 16/11/2016

screenshot

Responsive image

M
Replied on 17/11/2016

not sure why this error is coming try downloading a different version of selenium.