[Webtest] 1. Re: 6. Re: javascript link (Denis N. Antonioli) #1856 - 2 msgs (Marc Guillemot)

Michael Habbert Michael Habbert <Michael.Habbert@netpioneer.de>
Mon, 04 Jun 2007 16:03:36 +0200

Hi Francisco Javier Martin Gutierrez,

Francisco Javier Martin Gutierrez wrote:
> Hello Marc:
> =20
> 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=20
> 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=20
> links. There are evidence about StoreRegEx is not working properly or=20
> this link is unsupported,

I looked into your last mails and found your RegExpression:

<storeRegEx description=3D"Extract target location from javascript comman=
r(10101A,prueba marcos)&quot;"
       property=3D"targetLocation" />

I do wonder how you expect this text-RegExp to match to your href-tags ??=

> [storeRegEx]  INFO (com.canoo.webtest.steps.Step) - Message was: No=20
> match for regular expression <.*name=3D"a".*href=3D"elim
> inar('10101A', 'prueba marcos')">

of course not!

> 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 probl=

Don't give up! When you provide us with the neccessary information we wil=
l able to track down the=20
problem and provide a fixture or a workaround - usually ;-)

>                 <td bgcolor=3D"#FBFBFB" colspan=3D"3"/>
>                 <td align=3D"center" bgcolor=3D"#FBFBFB"><a=20
> href=3D"javascript:eliminar('10101A', 'prueba marcos');"><img=20
> src=3D"imagenes/ico_eliminar.gif" alt=3D"eliminar" width=3D"8" height=3D=
> border=3D"0"></a></td>

I would suggest for your RegEx-string something like:

text=3D"&lt;a\shref=3D&quot;javascript\:eliminar\(&apos;(\d{5}\w&apos; ..=

what do you think;-)

Mit freundlichen Gr=C3=BC=C3=9Fen

Michael Habbert