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;
}
