Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Status-Untriaged
New issue 5955 by
eric.pla...@mutualmobile.com: WebElement.get_attribute
broken for python
http://code.google.com/p/selenium/issues/detail?id=5955
What steps will reproduce the problem?
1. Get a WebElement
2. Try to get a boolean attribute
What is the expected output? What do you see instead?
A boolean return value is expected, but get a traceback in stead
Selenium version: 2.33.0
OS: OSX 10.8.4 x86_64
Browser: appium
Browser version: appium
In [19]: driver
Out[19]: <selenium.webdriver.remote.webdriver.WebDriver at 0x10c30df90>
In [20]: el = driver.find_element_by_tag_name('listView')
In [21]: el
Out[21]: <selenium.webdriver.remote.webelement.WebElement at 0x10c30db90>
In [22]: el.get_attribute('enabled')
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-22-6eef725c0355> in <module>()
----> 1 el.get_attribute('enabled')
/Users/plaster/rep/QA/mats/lib/python2.7/site-packages/selenium/webdriver/remote/webelement.pyc
in
get_attribute(self, name)
71 attributeValue = resp['value']
72 if type(resp['value']) is bool:
---> 73 attributeValue = attributeValue.lower()
74
75 return attributeValue
AttributeError: 'bool' object has no attribute 'lower'
If we determined that the response type if a boolean value, why are we
trying to do a string lower on it?
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings