Title: space in link text

.link(:text, "Space Between Words").click

 

Works for me, but if you’re lazy:

 

.link(:text, /Space/).click

 

As long as the first link the regexp matches is the one you want clicked.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Neumann, Carsten - ENCOWAY
Sent: Tuesday, August 02, 2005 9:03 AM
To: [email protected]
Subject: [Wtr-general] space in link text

 

How can I click on a text-link in ruby, which contains a space between two words?

Thanks!

 

 

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

Reply via email to