Hello Everybody!

 

I’m trying to find a link with Watir by using 2 regular expressions.. is this posible?

 

Let’s suppose I’m trying to find a link with this url:

 

http://server.com/jm/sell?act=form&subAct=modif&siteID=MLA&itemID=22245975

 

And I’ve defined two RegExp:

 

RegExp1 = “subAct=modif”

RegExp2 = “22245975”

 

I’ve tried something like..

 

If browser.link(:url, /#{regExp1}#{regExp2}/).exists? == true then

[…]

 

But this doesn’t work.. I suppose I need something like / #{regExp1} | #{regExp2} / (but instead of doing an OR, something that works like an AND of regexps).

 

Hope you understand my bad english

Any help would be really appreciated

 

Thanks in advance

Rodrigo Julian Martin.

           

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to