Re: [Wtr-general] IE stops randomly | whole server is not available while evaluating a test

2006-10-30 Thread Bret Pettichord
Benjamin Hemken wrote: > And then we remove them from the suite > tests.each { |t| WebTestCase.class_eval "remove_method > '#{t.test_method_name}'" } > > Why do you do this? I suggest you remove this and see if your problems stop. Bret ___ Wtr-genera

Re: [Wtr-general] problem in extracting table record

2006-10-30 Thread Bret Pettichord
This warnings are benign. You can ignore them. They are not stopping your script. Use the IE Dom Explorer to examine the structure of the tables. It is better than show_tables. Bret VIKASH KUMAR wrote: > > *I am using the code :* > > > > require 'watir' > require 'open-uri' > url = "http://f

Re: [Wtr-general] Getting number of IE browsers open

2006-10-30 Thread Bret Pettichord
arvind wrote: > I want to get the number of IE browsers open. I s it possible to get the > number of browsers opened in watir? > Below is the Watir 1.5 code use in IE.attach and IE.find. It iterates through all the IE windows to find a match. You could modify this simply count open windows.

Re: [Wtr-general] screenshots

2006-10-30 Thread Bret Pettichord
Why don't you go ahead and update trunk? Bret Paul Rogers wrote: > that module is kind of fragile. There is some better code I posted about a > month ago. > > Paul > > - Original Message - > From: "Cain, Mark" <[EMAIL PROTECTED]> > Date: Monday, October 23, 2006 8:24 am > Subject: Re: [W

Re: [Wtr-general] "Breakpoint" great tool to use with Watir

2006-10-30 Thread Bret Pettichord
John Lolis wrote: > Just thought I would share this. I found this interesting program called > "breakpoint" > > http://ruby-breakpoint.rubyforge.org/ > > this allows you to add "breakpoint()" anywhere in your program and the IRB > pops up. You can then poke around and debug issues. This has been

[Wtr-general] "Breakpoint" great tool to use with Watir

2006-10-30 Thread John Lolis
Just thought I would share this. I found this interesting program called "breakpoint" http://ruby-breakpoint.rubyforge.org/ this allows you to add "breakpoint()" anywhere in your program and the IRB pops up. You can then poke around and debug issues. This has been a HUGE help to me. It allows

Re: [Wtr-general] Error when trying to attach to a modal window.

2006-10-30 Thread Charley Baker
My guess is that you're using Ruby 1.8.4 or 1.8.5 and the customized version of win32ole.so which defines the connect_unknown method is not being loaded. There is a defect report on this issue: http://jira.openqa.org/browse/WTR-86 Take a look at the comments for suggestions how you might workarou

Re: [Wtr-general] Error when trying to attach to a modal window.

2006-10-30 Thread Bret Pettichord
[EMAIL PROTECTED] wrote: > I am getting the following error when trying to attach to a modal > window (modal = ie.modal_dialog): > > NoMethodError: undefined method `connect_unknown' for > WIN32OLE:Class > > Any ideas? Watir 1.5 comes bundled with a modified version of WIN32OLE. This err

Re: [Wtr-general] WinClicker - too many callbacks are defined

2006-10-30 Thread George
Thanks Charley, That has solved my problem. George - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=4987&messageID=13968#13968 ___ Wtr-general mailing list Wtr-gen

Re: [Wtr-general] WinClicker - too many callbacks are defined

2006-10-30 Thread Charley Baker
I updated winClicker, removing returns from the enum procs for getChildHandle and getWindowHandle, returning to the changes that had been made in build 1070. Let me know if this is working any better for you. This is the downside of not having unit tests and as Bret said why this is basically unsup

Re: [Wtr-general] OT: Programming/Ruby Logic question

2006-10-30 Thread Paul Carvalho
I like your simplification, thanks.What I was originally trying to do was use a CASE structure, but I couldn't figure out how to use multiple comparisons.  That is, I tried something like this:case array[ position ]    when 'foo' then start_col = 1   when 'green eggs' then start_col = 10   when

[Wtr-general] problem in extracting table record

2006-10-30 Thread VIKASH KUMAR
I am using the code :   require 'watir'require 'open-uri'url = ""http://finance.yahoo.com">http://finance.yahoo.com"ie = Watir::IE.start(url)ie.text_field(:name,'s').flashie.text_field(:name,'s').set("IBM")ie.button(:id,'q').flashie.button(:id,'q').clicksleep 2ie.show_tables All works well except i

Re: [Wtr-general] Getting number of IE browsers open

2006-10-30 Thread Željko Filipin
ie1 = Watir::IE.newie2 = Watir::IE.new...If that is not what you need, take a look at the FAQ, there is headline "Multiple concurrent Internet Explorer windows that are not based on the same ' iexplore.exe' process" (http://wiki.openqa.org/display/WTR/FAQ#FAQ-concurrentie).Zeljko-- http://zeljkofil

Re: [Wtr-general] WinClicker - too many callbacks are defined

2006-10-30 Thread George
Thanks Egil. Yes, that is what is happening. DL.remove_callback in getChildHandle is not being executed. The preceding line - r = enum_childWindows.call(hWnd, enum_childWindows_proc ,0) - is reached on each iteration but I can't figure out what happens then. George -

[Wtr-general] Error when trying to attach to a modal window.

2006-10-30 Thread Leon . Ouretski
This email is to be read subject to the disclaimer below. Hi, I am getting the following error when trying to attach to a modal window (modal = ie.modal_dialog):         NoMethodError: undefined method `connect_unknown' for WIN32OLE:Class Any ideas? Thanks Leon Ouretski ---