html - Selenium IDE (only) need to locate input by text value -


here problem best can give it

there system in people check off various entries when do, these entries generate tables of elements in location filled out way system works, order in fill out things order in these items appear. not able change code or coding standards. can work have, , have complicated ajax pages variable names change works.

up until now, ide has been great!!!

but want grab location of textbox want work use go dom , down other elements using xpath axes

the first step in locate textbox value in it. can find box using css value this: //input[@value="test"] not work

i using ide now... , employer not wish move (yet) driver (what boss wants boss gets, regardless of how hard me do)

ie. have locate element contents, add data elements in block using xpath axes

i have tried tons of things avoid complication , nothing seems work in finding element

here code 1 block of 24 repeating blocks contents can different based on kind of item listed in textbox.

the table under td repeatsection repeats foe each block.

i (tried to) bold input statement...
[and yes, know div has start no close - have work have]

<td class="repeatedsection" colspan="3">     <table class="">     <tbody>       <tr class="">         <td class="">             <table class="basiccollayout">             <tbody>             <tr class="readonlyfield">             <tr class="entity">                <td class="component subcomponent structure person">                   <div class="xfctrl fullline" style="">                      <label class="">procedure</label>                      **<input class="xftext" type="text"                       name="xf_0projecttabs_containercurrentview_fmodel_8"                      autocomplete="off">**                   </div>                   <div class="" style="display: none;">                </td>                <td class="options" style="">             </tr>             <tr class="yesnobuttons" style="">             <tr class="xform">             <tr class="box" style="">             <tr class="yesnobuttons" style="">             <tr class="box" style="display: none;">             <tr class="box" style="display: none;">             <tr class="box" style="display: none;">             <tr class="dropdown" style="">             <tr class="xform" style="display: none;">             <tr class="repeaterdeleteline" style="display: none;">             </tbody>             </table>       </td>     </tr>     </tbody>     </table> </td> 

to reiterate... want locate input type=text has value

then use xpath axes go child parent tree, edit other elements in group. wanted avoid looping constructs if possible, though using javascript better flow.

any ideas?

i tried enter comments not possible formatting didn't work. deleted code here, , replacing tested solution

a solution, not 1 wanted

    <title>new test</title>     </head>     <body>     <table cellpadding="1" cellspacing="1" border="1">     <thead>     <tr><td rowspan="1" colspan="3">new test</td></tr>     </thead><tbody>     <tr>     <td>store</td>     <td>1</td>     <td>index</td>     </tr>     <tr>     <td>while</td>     <td>(${index}&lt;24)</td>     <td></td>     </tr>     <tr>     <td>storevalue</td>     <td>//tr[@class='repeater']//td[@class='repeatedsection']//table[${index}]//input[@class='xftext']</td>     <td>inputvaluetotest</td>     </tr>     <tr>     <td>gotoif</td>     <td>'${inputvaluetotest}'=='value test in input'</td>     <td>search01</td>     </tr>     <tr>     <td>storeeval</td>     <td>${index}+1</td>     <td>index</td>     </tr>     <tr>     <td>endwhile</td>     <td></td>     <td></td>     </tr>     <!--fall through no match found-->     <tr>     <td>storeeval</td>     <td>100</td>     <td>index</td>    </tr>      <tr>     <td>label</td>     <td>search01</td>     <td></td>     </tr>     <!--check if search successful-->     <tr>     <td>gotoif</td>     <td>(${index}==100)</td>     <td>notfound01</td>     </tr>     <!--match success process-->     <tr>     <td>echo</td>     <td>-------found--------&gt;index = ${index}</td>     <td></td>     </tr>     <tr>     <td>echo</td>     <td>-------found--------&gt;${inputvaluetotest}</td>     <td></td>     </tr>     <tr>     <td>echo</td>     <td>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</td>     <td></td>     </tr>     <tr>     <td>label</td>     <td>notfound01</td>     <td></td>     </tr> 

many stepped right away trying help. appreciated regardless of outcome. :)


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -