Escape the "(" and ")"
The regex should be:
/javascript.*selectTerritory\('1',%20'select'\)/Aureliano. PS: I haven't tried it, so you might have to escape something else. Possible candidates are "'", "%" and ",". -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lewis Sent: Jueves, 28 de Septiembre de 2006 11:19 a.m. To: [email protected] Subject: [Wtr-general] regex && url 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 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.12.9/457 - Release Date: 26/09/2006 _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
