selenium.Select

Using selenium.Select in Webdriver 

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

public void Select(string xpath, string value)
{
driver.FindElement(By.XPath(xpath+"/option[.='"+value+"']")).Click();
}

By Pavandeep Puddupakkam on December 9, 2011 | Selenium RC, WebDriver | A comment?
Tags: , ,