hi
try this :
link = "contact"
ie.link(:url, /#{link}/).click
2007/6/7, John <[EMAIL PROTECTED]>:
Hi,
I have stored the link descriptions in a file to limit the maintenance
efforts. I read the description from the file, store it in a variable and
then click the link. When I use the whole link description, everything works
fine:
[code]
link = "www.example.com/contact.php"
ie.link(:url, link).click
[/code]
But when I use a regular expression, then it doesn't work, because I think
it is stored as a string:
[code]
link = "/contact/"
ie.link(:url, link).click
[/code]
How can I use regular expressions this way? Is there some string to
regular expression conversion possibility?
Regards,
John
Message was edited by: jarkelen1
_______________________________________________
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