Re: [Wtr-general] Everyday Scripting with Ruby (the book)

2007-04-06 Thread Bill
Upon further review... I finally got to the book and gave it a proper reading. (Although I still need to go back and do some of the excercises) I was inaccurate in my initial comments based on a superficial browsing of the book a couple months back. Mea culpa. The first half is a lot of review

Re: [Wtr-general] How to make IE as active windows and capture it?

2007-04-06 Thread Charley Baker
The bring to front method acts on the window title. If there's no window title (you haven't navigated anywhere yet) then it won't bring the window to the front. -Charley On 4/6/07, Jason He <[EMAIL PROTECTED]> wrote: Yes, thank you for your help. I find if ie.bring_to_front is before ie.go

Re: [Wtr-general] How Capture the Text area

2007-04-06 Thread Željko Filipin
Hi Vamsi, If you have this html some text you can do it like this irb(main):009:0> "some text" == ie.text_field(:index, 1).text => true Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/l

Re: [Wtr-general] Access all elements in a form

2007-04-06 Thread Željko Filipin
Hi Sayali, I got lost. I did not understand what do you want to do. You can not set one radio button? Regarding your original post, this is how you can flash all radio buttons in a form. ie.form(:index, 1).radios.each { |radio| radio.flash } Zeljko -- ZeljkoFilipin.com

Re: [Wtr-general] Read a Focused value in Drop List

2007-04-06 Thread Željko Filipin
Hi Vamsi, If you have this html one two this is how you can find what it selected (this is irb session). irb(main):008:0> selected = ie.select_list(:index, 1).getSelectedItems => ["one"] irb(main):010:0> selected[0] => "one" Zeljko -- ZeljkoFilipin.com __

[Wtr-general] How Capture the Text area

2007-04-06 Thread vamsi
I need to compare the text (in Captured text area) with some predefined value... Can any one please assist me on this Thanks in Advance... Regards Vamsi ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-g

Re: [Wtr-general] Access all elements in a form

2007-04-06 Thread Sayali Patil
Hi Zeljko, Here is the html that is generated, one two aa bb cc two three aa bb cc two three In this case the parId0 parameter name is repeated twice in the same code. Once it is displayed as individual radio buttons and once it is displayed in the form of nes

[Wtr-general] Read a Focused value in Drop List

2007-04-06 Thread vamsi
How to read a focussed value in Drop Down list and assign to some variable? Thanks in Advance... Regards Vamsi ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to make IE as active windows and capture it?

2007-04-06 Thread Jason He
Yes, thank you for your help. I find if ie.bring_to_front is before ie.goto(), then the window console will be brought in front. And if it is after ie.goto() just as you write, then the ie window will be brought in the front. Can anyone explain what the difference between those two is?

Re: [Wtr-general] About the execution speed of waitr/ruby

2007-04-06 Thread Jason He
Hi, Zeljko, Follow your suggestion, I find the methods set_fast_speed & set_slow_speed, and can control the script execution speed. I want to make it could be configurable in testing script, so write the following code in my test script, ---

Re: [Wtr-general] Access all elements in a form

2007-04-06 Thread Željko Filipin
Hi Sayali, Can you post html of that form, your watir code, and error message? Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general