ecarrera
unread,Jun 11, 2012, 2:54:41 PM6/11/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Selenium Users
Hi,
i'm trying to get the attributte of a hidden element, but it throws an
error when try to get it.
The code is simply, as common sense:
driver.find_element_by_id('captcha').getAttribute('value')
Yeap, the element is 'captcha', so the page is really fool.
In the form the hidden element looks like:
<input type="hidden" name="captcha" id="captcha"
value="5635s" size="6" />
So I want to put this value into the 'captcha2' element to verify the
captcha.
AttributeError: 'WebElement' object has no attribute
'getAttribute'