What about somehting like:
if (browser.link(:url, /#{regExp1}.*#{regExp2}/).exists? ||
browser.link(:url, /#{regExp2}.*#{regExp1}/).exists?)
...
end
Cheers,
Daniel.
On 06/07/06, Rodrigo Julian Martin <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Thanks Ravi, it worked! But I'm having another problem right now… the
> RegExp1 and RegExp2 could appear in any order in the links… I guess the
> sentence you sent me only works if regExp1 ocurrence is Before regExp2
> right?
>
>
>
> ________________________________
>
>
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Ravishankar, MG
> Sent: Jueves, 06 de Julio de 2006 11:56 a.m.
> To: [email protected]
> Subject: Re: [Wtr-general] [question] Finding a Link with 2
> regularexpressions?
>
>
>
>
>
>
> If browser.link(:url, /#{regExp1}.*#{regExp2}/).exists? ==
> true then
>
>
> […]
>
>
>
> should work!
>
>
>
> -MG
>
>
> ________________________________
>
>
>
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general