Title: Message
this looks like a perfect situation for Bret new select_list scheme - you could do this
 
ie.select_list(:name, 's').option(:value, 'v2').clear
 
So Bret, maybe we should add it soon ?
 
Paul

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tuyet Cong-Ton-Nu
Sent: 13 July 2005 19:32
To: '[email protected]'
Subject: [Wtr-general] ClearSelection

How can I clear a selection that was previously selected?

1) Selecting this item works fine

irb(main):012:0> ie.frame("customizeRemoteContent").select_list(:id, "availableC

olumnsSelectBox").select("-Descriptive Data")

=> nil

 

2) But clearing it seems to not work

irb(main):013:0> ie.frame("customizeRemoteContent").select_list(:id, "availableC

olumnsSelectBox").select("-Descriptive Data").clearSelection

NoMethodError: undefined method `clearSelection' for nil:NilClass

        from (irb):13

        from ♥:0

 

3) This works too but it takes over 20 seconds since my select box has lots of items

so it’s too long to use in a script

ie.frame("customizeRemoteContent").select_list(:id, "availableColumnsSelectBox").clearSelection

 

That’s why I need to be able to clearSelection for a particular item rather than for the entire select box

 

Any idea how to make #2 work?

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

Reply via email to