Hello Marc:
I thought about you say concerning information before or after the link that
could change the form to click on the link. Sorry, but I still think the
same I though before. The page looks like any easy page to be analyzed. All
links on the page can be followed except this kind of links. There are
evidence about StoreRegEx is not working properly or this link is
unsupported,
[storeRegEx] INFO (com.canoo.webtest.steps.Step) - Message was: No match
for regular expression <.*name="a".*href="elim
inar('10101A', 'prueba marcos')">
Also bad embedded javascript execution may be the reason. (->* See below)
Sorry, I wouldn't disturb anymore about this. I think I've tried all I can,
so if we can't found the solution this time I will leave the problem.
Here is the page code we need. Thank you a lot for your help.
...
<tr>
<td colspan="11" valign="bottom" bgcolor="#FBFBFB"
class="textoFormulario"><img src="imagenes/blank.gif" alt="separador"
width="10" height="5"></td>
</tr>
<tr>
<td width="1%" valign="bottom" bgcolor="#FBFBFB"
class="textoFormulario"> </td>
<td nowrap bgcolor="#FBFBFB"
class="textoFormulario">10101A</td>
<td width="1%" valign="bottom" bgcolor="#FBFBFB"
class="textoFormulario"> </td>
<td nowrap bgcolor="#FBFBFB" class="textoFormulario">prueba
marcos</td>
<td width="1%" valign="bottom" bgcolor="#FBFBFB"
class="textoFormulario"> </td>
<td nowrap bgcolor="#FBFBFB"
class="textoFormulario">04/06/2007</td>
<td bgcolor="#FBFBFB" colspan="3"/>
<td align="center" bgcolor="#FBFBFB"><a
href="javascript:eliminar('10101A', 'prueba marcos');"><img
src="imagenes/ico_eliminar.gif" alt="eliminar" width="8" height="9"
border="0"></a></td>
<td bgcolor="#FBFBFB" class="textoFormulario"> </td>
</tr>
<tr>
<td colspan="11" valign="bottom" bgcolor="#FBFBFB"
class="textoFormulario"><img src="imagenes/blank.gif" alt="separador"
width="10" height="5"></td>
</tr>
<tr>
<td colspan="11" valign="bottom" bgcolor="#D2D2D2"><img
src="imagenes/blank.gif" alt="separador" width="10" height="1"></td>
</tr>
<tr>
<td colspan="11" valign="bottom" bgcolor="#F7F7F7"
class="textoFormulario"><img src="imagenes/blank.gif" alt="separador"
width="10" height="5"></td>
</tr>
<tr>
<td width="1%" valign="bottom" bgcolor="#F7F7F7"
class="textoFormulario"> </td>
<td nowrap bgcolor="#F7F7F7"
class="textoFormulario">201011</td>
<td width="1%" valign="bottom" bgcolor="#F7F7F7"
class="textoFormulario"> </td>
<td nowrap bgcolor="#F7F7F7"
class="textoFormulario">Desajustes conviven. incumplim. oblig. econ. del
cónyuge</td>
<td width="1%" valign="bottom" bgcolor="#F7F7F7"
class="textoFormulario"> </td>
<td nowrap bgcolor="#F7F7F7"
class="textoFormulario">28/03/2007</td>
<td bgcolor="#F7F7F7" colspan="3"/>
<td align="center" bgcolor="#F7F7F7"><a
href="javascript:eliminar('201011', 'Desajustes conviven. incumplim. oblig.
econ. del cónyuge');"><img src="imagenes/ico_eliminar.gif" alt="eliminar"
width="8" height="9" border="0"></a></td>
<td bgcolor="#F7F7F7" class="textoFormulario"> </td>
</tr>
<tr>
<td colspan="11" valign="bottom" bgcolor="#F7F7F7"
class="textoFormulario"><img src="imagenes/blank.gif" alt="separador"
width="10" height="5"></td>
</tr>
<tr>
<td colspan="11" valign="bottom" bgcolor="#D2D2D2"><img
src="imagenes/blank.gif" alt="separador" width="10" height="1"></td>
</tr>
...
I can click on links like:
<td align="center"><a href="javascript:buscar();"><img
src="imagenes/boton_buscar.gif" width="71" height="23" hspace="10"
border="0"></a><a href="javascript:limpiar();"><img
src="imagenes/boton_limpiar.gif" alt="Cancelar" name="cancelar" width="71"
height="23" hspace="10" border="0" id="cancelar"></a><a
href="javascript:aniadir();"><img src="imagenes/boton_anadir.gif"
alt="Anadir" name="Anadir" width="71" height="23" hspace="10" border="0"
id="anadir"></a>
<a href="javascript:lista();"><img
src="imagenes/boton_list_favoritas.gif" alt="Anadir" name="lista"
width="120" height="23" hspace="10" border="0" id="lista"></a></td>
-> <clickLink description="Click link: click boton Buscar"
href="javascript:buscar();" />
->* If I click on this link, test must fail on verifyText command, and it
never happens:
-> <clickLink description="Click link: click button: Eliminar"
href="javascript:eliminar('10101A', 'prueba marcos');" />
Ant test report is:
[clickLink] INFO (com.canoo.webtest.steps.request.AbstractTargetAction) -
-> gotoTarget by clickLink
[clickLink] DEBUG (com.gargoylesoftware.htmlunit.javascript) - Now build JS
function
[clickLink] function GargoyleWrapper7() {eliminar('10101A', 'prueba
marcos');
[clickLink] }
[clickLink] DEBUG (com.gargoylesoftware.htmlunit.javascript.host.Anchor) -
No configured setter "GargoyleWrapper7" found
for HTMLElement for HtmlAnchor[<a href="javascript:eliminar('10101A',
'prueba marcos');">]. Setting it as pure javascri
pt property.
[clickLink] DEBUG (com.gargoylesoftware.htmlunit.javascript.host.Anchor) -
Property "eliminar" of HTMLElement for HtmlAn
chor[<a href="javascript:eliminar('10101A', 'prueba marcos');">] not defined
as fixed property
[verifyText] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step:
verifyText "Texto presente: 10101A" (57/60)
...
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.