Hello:
Sorry about the xpath example but the source code is true. I want to reach
the input checkbox element which is inside the td element, not other.
Sometimes input checkbox change from
<td class="valorCeldaListado"><input type="checkbox"
name="valoracion[2].checkeado" value="on" style="{border : 0}"></td>
to
<td class="valorCeldaListado"><input type="checkbox"
name="valoracion[1].checkeado" value="on" style="{border : 0}"></td>
It is obvious that I have not enough acknowledgment about XPath syntax. I
have tried also
<setCheckbox description=" Desajustes convivienciales por ser soltera
gestante"
xpath="//tr/td[text(Desajustes convivienciales por ser soltera
gestante)]../[EMAIL PROTECTED]'checkbox'" value="on" />
I am reading more about how to do it but now I need help.
Thanks.
_____
De: Dierk Koenig [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 14 de septiembre de 2007 14:01
Para: [email protected]; [EMAIL PROTECTED]
Asunto: RE: [Webtest] Smart setCheckbox
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.
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.