To match the text you have supplied, try the following regular expression:

   /javascript:.*selectTerritory\('1',%20'select'\)/

You need to escape the parenthesis using backslashes.  I hope this helps.

Cheers,
Daniel.

On 28/09/06, Adrian Lewis <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am having difficulties using regex and clicking on a link.
>
> the full link is:
>
> "javascript:PC_7_0_G6_selectTerritory('1',%20'select')"
>
> the regex I am using is:
>
>  $ie.link(:url, /javascript.*selectTerritory('1',%20'select')/).click
>
> and I receive an UnknownObjectException
>
> thanks
>
> aidy
>
>
>
> ---------------------------------------------------------------------------------------------------------------
> This message and any attachment are confidential and may be privileged or 
> otherwise protected from disclosure.
> If you are not the intended recipient, please telephone or email the sender 
> and delete this message and any attachment from your system.
> If you are not the intended recipient you must not copy this message or 
> attachment or disclose the contents to any other person.
> ---------------------------------------------------------------------------------------------------------------
> _______________________________________________
> 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

Reply via email to