Title: space in link text
Well, I can click
 
<a href="">one&#x20;two</a>
 
with
 
ie.link(:text,'one two').click
 
Zeljko


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

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

The problem is, in the HTML source it says “one&#x20;two”, so .link(:text, "one two").click doesn’t work.

 

 


Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Tom
Gesendet: Dienstag, 2. August 2005 17:36
An: [email protected]
Betreff: RE: [Wtr-general] space in link text

 

 

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

 

Thanks!

 

 

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

Reply via email to