[Wtr-general] Article on Watir in 'Better Software' magazine.

2005-11-25 Thread Amit Dighe
Hi, There was an article on Watir in 'Better Software' magazine. Im interested in going through the document. Can anyone mail me that document? Cheers, Amit Dighe ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] How to check maxlength validation for a textfield using watir?

2005-11-25 Thread chaya shetty
Hi,I am using ie.text_field(..).set('a string').But still the textfield accepts a string that exceeds the max length. WhenI retrieve the contents of the text field it gives the entire string (i.e all the characters including the ones that exceed the max length)How do I deal with

[Wtr-general] How to call a script from a running script

2005-11-25 Thread Beaton, Malcolm
Hi Everyone OK so this is probably a little rudimentary but in order to keep my scripts separately for separate pages (Which will make maintaining them much easier) Is there a way to create a control file that basically says Go and Run /myDir/Script1.rb When it ends Go and run

Re: [Wtr-general] HTML Results Reports for Watir

2005-11-25 Thread Yury Krasavin
The problem with this is the need to run .NET Framework and install another tool for it to work. Do you or someone else know how to do it only with Watir and an open source CI Tool ? Oh, yes, if I knew a simplier way (the one without intermediate xUnit framework) I would like to

[Wtr-general] if else syntax question

2005-11-25 Thread polleu
Hi all, Im trying to run if (i == 4) then $branch_column2[count] = table[i][2].text_field(:index, 1).name.to_s count += 1 $branch_column2[count] = table[i][2].text_field(:index, 1).name.to_s elsif (i == 9) then $branch_column2[count] =

[Wtr-general] if else syntax question

2005-11-25 Thread polleu
Hi all, Im trying to run if (i == 4) then $branch_column2[count] = table[i][2].text_field(:index, 1).name.to_s count += 1 $branch_column2[count] = table[i][2].text_field(:index, 1).name.to_s elsif (i == 9) then $branch_column2[count] =

Re: [Wtr-general] if else syntax question

2005-11-25 Thread Vishal Chavan
Hi Polleu, Not sure if I got your query right, I guess u r trying to execute the loop thru irb. If thats the case use following statement to start IRB: irb --noreadline I found that your loop is properly defined. To test I have assigned some value to i. Here is the code: i=9if (i == 4) thenputs

Re: [Wtr-general] HTML Results Reports for Watir

2005-11-25 Thread smanish
I tried installing and running damagecontrol, but it crashes. I am no Ruby expert and could not figure out whats exactly wrong? Anywasy, Is project alive? The project does n't have active mailing list. No messages since April. Has anybody working installation, I wanted to try out to see how I

Re: [Wtr-general] HTML Results Reports for Watir

2005-11-25 Thread Manish Sapariya
I tried installing and running damagecontrol, but it crashes. I am no Ruby expert and could not figure out whats exactly wrong? Anywasy, Is project alive? The project does n't have active mailing list. No messages since April. Has anybody working installation, I wanted to try out to see how I

Re: [Wtr-general] if else syntax question

2005-11-25 Thread Hrishikesh Jamadagni
Hi want to click a link in a popup, If I catch the popup in cache and open it , it show a .css file How do I click a link contained in css file?? hrishij -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vishal Chavan Sent: Friday,

Re: [Wtr-general] How to call a script from a running script

2005-11-25 Thread Jeff Wood
Assuming that each of these scripts are executable... how about: --SCRIPT-- #!/usr/bin/env ruby run_dir = /mydir pages = [ /Script1.rb, /Script2.rb, /Script3.rb ] pages.each do |curr_page| `#{ run_dir }#{ curr_page } #{ curr_page }.log` end #run complete --SCRIPT-- Should provide you with

Re: [Wtr-general] How to call a script from a running script

2005-11-25 Thread Jeff Wood
... heh, course I used *nix style command paths ... so, lets try that again in a windows way --SCRIPT-- #!/usr/bin/env ruby run_dir = C:\\mydir pages = [ \\Script1.rb, \\Script2.rb, \\Script3.rb ] pages.each do |curr_page| `#{ run_dir }#{ curr_page } #{ curr_page }.log` end #run

Re: [Wtr-general] Watir hangs after logging into an Application that has applet in the first screen after logging in...

2005-11-25 Thread Bret Pettichord
At 03:27 AM 11/24/2005, Amitha Shetty wrote: I am trying to login into an application which has an applet in the login page(i.e first screen after logging in).Watir and the application hangs after logging in. Is this due to the applet? Could be. I am not trying to do anything in the first

Re: [Wtr-general] How to check the error when opening the html pages

2005-11-25 Thread Jeff Wood
This is very much dependant on what you consider an error... Do you mean an error from the HTTP side of things ??? a browser failure ??? a com failure ??? what ? j. On 11/23/05, jim che [EMAIL PROTECTED] wrote: Hi all I want to know how to check the errors when opening the html pages.For

[Wtr-general] why WinClicker works in irb but not in the rb script?

2005-11-25 Thread Roy Sin
Hi list I launched my web application with an instance of IE through irb. Browse to where I needed to delete an asset, the javascript confirmation popup shows up on the screen, I then enter w = WinClicker.new handle = w.getWindowHandle(Microsoft Internet Explorer) w.makeWindowActive(handle)

Re: [Wtr-general] How to check maxlength validation for a textfield using watir?

2005-11-25 Thread Bret Pettichord
At 06:12 AM 11/24/2005, chaya shetty wrote: I want to write a test case to check maxlength validation for a text field. use ie.text_field(:name, 'foo').maxLength _ Bret Pettichord www.pettichord.com ___ Wtr-general

Re: [Wtr-general] Clicking a link in a sidebar menu which is in a table within a frame

2005-11-25 Thread Bret Pettichord
I guess we didn't add the cell method to tables until after 1.4.2. You might want to take a look at the code in HEAD. Using 1.4.2, i think this should work: ie.table(:index, ?).row(:index, 3).cell(:index, 1).click Index is what you have to have to use when objects don't have any usable

Re: [Wtr-general] Clicking a link in a sidebar menu which is in a table within a frame

2005-11-25 Thread Roy Sin
Hi Bret, Thanks for the reply. I got it to work now with table=$ie.frame('cpmain').table(:index, 2) table[3][1].click I have to use index 2 because the side nav menu was in a table within a bigger table. Works great. thanks Roy. --- Bret Pettichord [EMAIL PROTECTED] wrote: I guess we