Webdriver spec says (http://www.w3.org/TR/webdriver/#reading-attributes-and-properties):
"If the value is expected to be a URL (see the below table), return the property named
name, i.e. a fully resolved URL."
Javadocs [1], Rubydocs [2], Python docs [3], C# docs [4] don't tell about this
Maybe, language docs should just link to Webdriver spec
[1]: http://selenium.googlecode.com/git/docs/api/java/org/openqa/selenium/WebElement.html#getAttribute(java.lang.String)
[2]: https://selenium.googlecode.com/svn/trunk/docs/api/rb/Selenium/WebDriver/Element.html#attribute-instance_method
[3]: http://selenium.googlecode.com/git/docs/api/py/webdriver_remote/selenium.webdriver.remote.webelement.html#selenium.webdriver.remote.webelement.WebElement.get_attribute
[4]: http://selenium.googlecode.com/git/docs/api/dotnet/html/M_OpenQA_Selenium_IWebElement_GetAttribute.htm
Originally reported on Google Code with ID 5463
Reported by
botalov.andrey
on 2013-04-08 21:31:50