[Wtr-general] Link description from file
John
forum-watir-users at openqa.org
Thu Jun 7 05:00:34 EDT 2007
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
More information about the Wtr-general
mailing list