your xpath has to resolve to a checkbox, i.e. the 'input' element not the
td.
Do you really have a td inside 'input'?

ciao
Dierk
  -----Original Message-----
  From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Francisco Javier Martin
Gutierrez
  Sent: Freitag, 14. September 2007 11:23
  To: [email protected]
  Subject: [Webtest] Smart setCheckbox


  Hello:



  I have read at Marc`s blob how to do an elegant correct xpath selection.
Please, can anybody revise this code and tell me how to check this ckeckbox
using xpath? The checkbox number [2] sometimes changes so I need to do it in
other way. I have tried this:

  <setCheckbox      description=" Desajustes convivienciales por ser soltera
gestante"

  xpath="//[EMAIL PROTECTED]'checkbox']/td[text(Desajustes convivienciales por
ser soltera gestante)]" value="on"  />



  Source code is:



              <tr>

                    <td class="valorCeldaListado"><input type="checkbox"
name="valoracion[2].checkeado" value="on" style="{border : 0}"></td>

                    <td class="valorCeldaListado">2</td>

                    <td class="valorCeldaListado">Desajustes convivienciales
por ser soltera gestante</td>

                    <td class="valorCeldaListado">PRUEBAPC002 AUTOMATICA
A000152</td>

                    <td class="valorCeldaListado">14/09/2007</td>

               </tr>



  Thank you.



        Francisco Javier Martín
        Desarrollo de Proyectos - Valladolid
        Security Solutions & Services Division



        Edif. Solar, Of. 13, 14, 15
        Parque Tecnológico Boecillo. 47151 Valladolid. España
        Tel.: 983 54 65 55   Fax: 983 54 66 09









----------------------------------------------------------------------------
--

  AVISO LEGAL: La informacion contenida en este mensaje y cualquier
documento adjunto en el mismo es confidencial, puede estar legalmente
protegida y esta dirigida solamente al destinatario. La publicacion, uso,
distribucion, impresion o copia no autorizada del contenido de este mensaje,
esta estrictamente prohibida y puede ser ilegal. Si Vd. ha recibido este
mensaje por error, le rogamos destruya el mensaje y lo notifique al
remitente o llame al telefono (+34) 91 556 92 62.

  DISCLAIMER: The information contained in this message and any attached
document is confidential, covered by law and intended solely for the
recipient. The distribution, print, publication, unauthorised copy and / or
use of the message content is strictly forbidden and could be deemed
illegal. If you are not the intended recipient of this message, we request
that you destroy it and notify the sender either in writing or by calling
++34 91 556 92 62.


<<image001.jpg>>

<<image002.gif>>

Reply via email to