Selenium IDE 1.5.0
New – Added support for Firefox 9
Bug – Changes to user extensions weren’t being updated in Firefox 8 – issue 2801
Bug – Security error was thrown when trying to type into file (upload) input fields in Firefox 8 – issue 2826
Bug – Improved French locale – issue 1912
Bug – break command was failing – issue 725
Bug – source view is now fixed width (monospace) – issue 522
New – Implemented ‘select’ formatting for WebDriver bindings (Java, C#, Python, Ruby)
Bug – Fixed compile-time and run-time errors in the code formatted for WebDriverBackedSelenium
Bug – Fixed ‘baseUrl’ and ‘get’ formatting errors in various formatters to handle relative and absolute URLs
Here is the Selenium RC code for selenium.Close in Webdriver. This code is in Visual Studio C#
public void Close()
{
driver.Close();
}
Here is the Selenium RC code for selenium.GetSelectedLabel in Webdriver. This code is in Visual Studio C#
public string GetSelectedLabel(string xpath)
{
string text = "";
if (driver.FindElement(By.XPath(xpath)).Selected)
{
text = GetText(xpath + "/option[@selected]");
}
return text;
}
Here is the Selenium RC code for selenium.GetSelectedIndex in Webdriver. This code is in Visual Studio C#
public string GetSelectedIndex(string xpath)
{
string text="";
int statenum = Convert.ToInt32(GetXpathCount(xpath+"/option"));
for (int i = 1; i < statenum; i++)
{
if (IsElementPresent(xpath+"/option[" + i + "][@selected]"))
{
text = Convert.ToString((i - 1));
}
}
return text;
}
Here is the Selenium RC code for selenium.SelectedLabel in Webdriver. This code is in Visual Studio C#
public string SelectedLabel(string xpath)
{
string text = "";
if (IsElementPresent(xpath))
{
text = GetValue(xpath + "/following-sibling::label");
}
return text;
}
Here is the Selenium RC code for selenium.Uncheck in Webdriver. This code is in Visual Studio C#
public void Uncheck(string xpath)
{
if (driver.FindElement(By.XPath(xpath)).Selected)
{
driver.FindElement(By.XPath(xpath)).Click();