Judy
unread,Jun 12, 2008, 11:08:36 AM6/12/08Sign 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...@googlegroups.com
I have several pages with dynamically generated forms divided into sections:
> <form>
> <div id="div_section_name">
> <table class="formtable">
> <tr><td>label</td><td>input field, dropdown or checkbox</td><td>range info about the field</td></tr>
> </table>
> <div id="div_section2_name">
> <table class="formtable">
> <tr><td>label</td><td>input field, dropdown or checkbox</td><td>range info about the field</td></tr>
> </table>
> </div>
The sections and elements in the sections are configurable. My goal is to pull out all of the form elements and test the error/changed processing on each, using the ranges in the <td> next to them for the text fields.
What's hanging me up is that getting the count of //tables[@class='formtable'] doesn't tell me how to get to each of those tables. What am I missing? Since the tables are each in divs they are actually all table[1]; there are other divs on the page outside of the form so they aren't eay to access by number.
Any hints would be greatly appreciated!!
Judy