[Wtr-general] Check Syntax in SciTE Version 1.67

2006-07-19 Thread sikander
Hi!!   There is no option called ‘Check Syntax – Ctrl + 1’ in SciTE Version 1.67 of Ruby, Please add it   Regards, Sikander ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] for loop syntax??

2006-07-19 Thread manishs
Does these constructs provide the current index value somehow? Regards, Manish On Wednesday 19 July 2006 21:50, Paul Carvalho wrote: > Ruby rocks! My fav is: > > 9.times {|x| puts x} > > It doesn't get any clearer for me than just telling it how many times I > want it to loop without worrying

[Wtr-general] File Download dialog never gets attached/found

2006-07-19 Thread John Krystynak
I want to get Watir to load a page, press a "download file" button and save the file. This first part works fine - and the "File Download" dialog comes up - PART 1 require 'Watir' include Watir ie = IE.new ie.goto("http://example.com";) ie.button(:value,"Login").click ie

Re: [Wtr-general] Just wanted to invoke click event where the button have parameters in it

2006-07-19 Thread Zeljko Filipin
HTML that you provided is not valid. Three tags have the same id. Ids should be unique.Can you ask your developer to changeDelete to DeleteIn short, change id="delete" to id="KH".Then you could access it like this ie.button(:id, "KH").clickOn 7/19/06, VIKASH KUMAR <[EMAIL PROTECTED]> wrote: Si

Re: [Wtr-general] How to handle tab buttons

2006-07-19 Thread Zeljko Filipin
Your tab is just a cell in a table.ie.cell(:id, "tbJobstd0").click ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Best way to log Watir output?

2006-07-19 Thread Michael Bolton
>The only resource I was able to find online pointed me back to the test_logger.rb script in watir/examples/logging. This script manually logs each action by doing a result/escape on each assertion to output the result to a .txt file. While this works, it's tedious and inefficient for a large scr

Re: [Wtr-general] for loop syntax??

2006-07-19 Thread Rand Thacker
Let's not forget the each_index method, then the size of the array no longer matters:pubInfoTextFields.each_index {|x|  Simple1.fill_text_field(pubInfoTextFields[x], pubInfo[x])   puts "pubInfoTextFields = "+pubInfoTextFields[x]+"   pubInfo = "+pubInfo[x] }On 7/19/06, Paul Carvalho <[EMAIL PROTECTE

Re: [Wtr-general] for loop syntax??

2006-07-19 Thread Paul Carvalho
Ruby rocks!  My fav is:  9.times {|x| puts x}It doesn't get any clearer for me than just telling it how many times I want it to loop without worrying about extra syntax that I'm likely to get wrong.. ;) On 19/07/06, Chris McMahon <[EMAIL PROTECTED]> wrote: On 7/19/06, mi <[EMAIL PROTECTED]> wrote:>

Re: [Wtr-general] for loop syntax??

2006-07-19 Thread Chris McMahon
On 7/19/06, mi <[EMAIL PROTECTED]> wrote: > ahhh, That was it!!! I'm just NOT used to start an iteration > form 0:-( THANKS a million Ruby folks don't generally use for loops: 1.upto 9 do |x| puts x end ruby loop.rb 1 2 3 4 5 6 7 8 9 >Exit code: 0 _

Re: [Wtr-general] for loop syntax??

2006-07-19 Thread mi
ahhh, That was it!!! I'm just NOT used to start an iteration form 0:-( THANKS a million Charley Baker wrote: > Your loop is 0-9 which is 10, your arrays are only 9 items long. > You've overshot it by one. > > for x in 0..8 do > ... > > -Charley > > On 7/19/06, * Cain, Mark*

Re: [Wtr-general] Best way to log Watir output?

2006-07-19 Thread Adam Reed
> ['pubUserName', '[EMAIL PROTECTED]', '1', '1', 'http://www.test.com', > '1234', '123 st', 'some city', '97035'] #[user name, emaildAdd, > passwd1, passwd2, yourSite, TaxID, StreetAdd, CityName, State, > ZipCode] > > Sim

Re: [Wtr-general] Best way to log Watir output?

2006-07-19 Thread Michael Bolton
Ruby's Logger object? What do you mean by "best"? ---Michael B. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Reed Sent: July 19, 2006 9:51 AM To: wtr-general@rubyforge.org Subject: [Wtr-general] Best way to log Watir output? What is the best way

Re: [Wtr-general] Best way to log Watir output?

2006-07-19 Thread Charley Baker
Adam,   If you want to create a log file look at logger which is a Ruby library, Watir makes use of it in WatirLogger. Otherwise if you're looking for a junit type of test run dashboard and you're using Test::Unit, take a look at Test Unit Reporter: http://rubyforge.org/frs/?group_id=319It can dum

Re: [Wtr-general] Page Loading Problem

2006-07-19 Thread Charley Baker
You can turn off image loading in the ie options dialog under advanced. I'm not aware of any other way to set Watir not to wait for ready state from the browser. -CharleyOn 7/18/06, David Solis <[EMAIL PROTECTED]> wrote: I have a problem with a site taking too long to load.  I'm hoping somebody ca

Re: [Wtr-general] for loop syntax??

2006-07-19 Thread Charley Baker
Your loop is 0-9 which is 10, your arrays are only 9 items long. You've overshot it by one. for x in 0..8 do...-CharleyOn 7/19/06, Cain, Mark <[EMAIL PROTECTED]> wrote:You will need to these: require 'test/unit'require 'test/unit/ui/console/testrunner'require 'watir/testUnitAddons'require 'wat

Re: [Wtr-general] for loop syntax??

2006-07-19 Thread Cain, Mark
You will need to these: require 'test/unit' require 'test/unit/ui/console/testrunner' require 'watir/testUnitAddons' require 'watir/testcase' I usually add the setup.rb from the unittest directory instead because these requires are already in it. --Mark -Original Message- From: [EMAIL P

Re: [Wtr-general] selecting multiple values from on list and passing itto other list

2006-07-19 Thread Cain, Mark
You could do something like this:     dbList = $ie.select_list( :name, 'assigned').getAllContents     for dbl in dbList     $ie.selectBox( :name, 'assigned').select("#{dbl}")   end   Hope this helps,   --Mark   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTE

[Wtr-general] Best way to log Watir output?

2006-07-19 Thread Adam Reed
What is the best way to create a log file, or otherwise manipulate Watir test output? I am looking a building a framework for testing, and it would be nice to output test results to a webpage, flat file, or even to a dashboard "results window". I would want to include variables used (eg, username