One of our developers has been trying to make clearer hooks for my WATIR development efforts. We're testing a theory using custom tags to see if I can access elements, and after following the advice here and on Zeljko's blog, I'm running into an interesting issue.
These examples are not in an exact or necessarily logical order - I only have a few minutes to type this up. Example page code: <form action="#" method="post" qa="request-form"> <input qa="request-form.first_name" name="first_name" class="default- text" title="First" style="width: 75px;"/> To access these elements, I have had success with the following to verify that it exists and Watir can access the element normally @ie.form(:index, 1) @ie.text_field(:title, /First/) However, when I try attribute_value and xpath, I'm getting Nil as the result, or a UFO error. @ie.form(:index, 1).attribute_value("qa") @ie.text_field(:xpath, "//inp...@qa='request.first_name']/") Am I using this incorrectly? Thanks! Watir 1.6.5 ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] -- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to firstname.lastname@example.org Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general