webdriver

is element present

Here is how to do it in webdriver:

if(!driver.findElements(By.xpath("//*[@id='submit']")).isEmpty()){
//THEN CLICK ON THE SUBMIT BUTTON
}else{
//DO SOMETHING ELSE AS SUBMIT BUTTON IS NOT THERE
}

Tags: 

Setting up Eclipse for Selenium Webdriver

I copied these steps from: http://assertselenium.com/2012/10/28/how-to-setup-a-webdriver-project-in... just in case that article dissappears (not to claim credit). The article was originally written by:

Posted by: assertselenium // eclipse, Selenium, WebDriver // selenium eclipse, Selenium setup, WebDriver, WebDriver project // October 28, 2012

Steps To Create a Selenium Project in Eclipse

Step 1: Download Eclipse

Tags: