In watir-webdriver, you would have to use the attribute_value method:

browser.text_field.attribute_value('maxlength')

Justin


On Tuesday, February 12, 2013 12:51:03 AM UTC-5, Phuoc Can Hua wrote:
>
> I used to use textField().maxlength in my scripts. Now I've changed it to 
> use 'watir-webdriver'. It doesn't like textField and I had to change it to 
> text_field instead.
> My problem is I can't get text_field().maxlength. It's saying: undefined 
> method.
> How can I get maxlength of text_field?
>
> Thanks
> Phuoc
>

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to