[Wtr-general] [question] Finding a Link with 2 regularexpressions?
Daniel Browne
browne.daniel at gmail.com
Thu Jul 6 12:04:34 EDT 2006
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 <rodrigo.martin at enratio.com> 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: wtr-general-bounces at rubyforge.org
> [mailto:wtr-general-bounces at rubyforge.org] On Behalf Of
> Ravishankar, MG
> Sent: Jueves, 06 de Julio de 2006 11:56 a.m.
> To: wtr-general at rubyforge.org
> 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
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
More information about the Wtr-general
mailing list