Tag Info

Hot answers tagged

2

you can pass the driver as argument to the methods , so no need to re create them.


2

You can use WebDriverWait to synch with page load. Something like the following might help WebDriverWait wait = new WebDriverWait(driver, 15); //you can play with the time integer to wait for longer than 15 seconds.` wait.until(ExpectedConditions.titleContains("title")); //if you want to wait for a particular title to show up OR ...


1

I assume that you set selenium properly. 1 - Go to your eclipse. 2 - Go to menu File ->New -> Java project. Give project name like "test" or anything you like. 3 - Click on Next. 4 - Select tab "Libraries" , Select option "Add external JARs" 5 - Add following 3 JARs : A- selenium-java-2.43.1 B- selenium-java-2.43.1-srcs C- ...


1

Solved Error. I was missing main class of java so it was giving me error. Just added main class and then program runs successfully.


1

MultiScreenShot I found following useful link in Github for Multiscreenshot



Only top voted, non community-wiki answers of a minimum length are eligible