I'm trying to verify the tab order on a login page by accessing the
tabindex attribute. Unfortunately, the tabindex isn't specified in the
HTML code and performing the following code isn't helping me. Does
anybody have any ideas?
~~~~~~~~~~~~~~~~~~
@browser = Watir::IE.attach(:title, /Login/)
puts @browser.text_field(:id, 'username').document.tabindex # returns
0
puts @browser.text_field(:id, 'username').attribute_value('tabindex')
# returns 0
puts @browser.text_field(:id, 'password').document.tabindex # returns
0, expected 1
puts @browser.text_field(:id, 'password').document.tabindex # returns
0, expected 1
~~~~~~~~~~~~~~~~~~
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
You received this message because you are subscribed to
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]