Using selenium.Check in Webdriver 

Here is the Selenium RC code for selenium.Check in Webdriver. This code is in Visual Studio C#

public void Check(string xpath)
{
if (!driver.FindElement(By.XPath(xpath)).Selected)
{
driver.FindElement(By.XPath(xpath)).Click();

}

}


Author: Pavandeep Puddupakkam on December 14, 2011
Category: WebDriver
Tags: , ,
Selenium Webdriver Forum -The Online Community for Selenium Webdriver and Selenium RC Users and Professionals

Leave a Reply

Last articles