Re: [Wtr-general] How to get the all the content of list box into variable

2007-06-07 Thread sapna
Thank you.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


[Wtr-general] How to get the all the content of list box into variable

2007-05-29 Thread sapna
Hi.

Please let me know how to store in a variable the content of the list box and 
use that variable to compaire with the default value.

Regards
Sapna
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] How to get the all the content of list box into variable

2007-05-29 Thread Željko Filipin

On 5/29/07, sapna [EMAIL PROTECTED] wrote:


Please let me know how to store in a variable the content of the list box
and use that variable to compaire with the default value.



Sapna,

It would help if you post relevant html snippet when posting question. For
example, I do not know what do you mean by list box. I will assume that you
have this

select
 option value =volvoVolvo/option
 option value =saabSaab/option
/select

and you want to get contents. You can do it like this:

ie.select_list(:index, 1).getAllContents
= [Volvo, Saab]

Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to get the all the content of list box into variable

2007-05-29 Thread SHALINI GUPTA

hi,
u can try this
ary=$ie.select_list(:name,
ctl00$header1$AddLocations1$lstAvailable).getAllContents()
$ie.select_list(:name,
ctl00$header1$AddLocations1$lstAvailable).select(ary[0].to_s)

u can compare this..

hope it will work.

regards
shalini gupta
On 5/29/07, Željko Filipin [EMAIL PROTECTED] wrote:


On 5/29/07, sapna [EMAIL PROTECTED] wrote:

 Please let me know how to store in a variable the content of the list
 box and use that variable to compaire with the default value.


Sapna,

It would help if you post relevant html snippet when posting question. For
example, I do not know what do you mean by list box. I will assume that you
have this

select
  option value =volvoVolvo/option
  option value =saabSaab/option
/select

and you want to get contents. You can do it like this:

ie.select_list(:index, 1).getAllContents
= [Volvo, Saab]

Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to get the all the content of list box into variable

2007-05-29 Thread sapna
Thanks a lot Zeljko this is what I was looking for.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general