Re: [Wtr-general] TypeError: can't convert NilClass into timeinterval

2006-05-24 Thread Raghu Venkataramana
Looking at the backtrace,it appears that you are using a very old version of WET.  Moreover, looking at the backtrace, I can't make out as to how your set method in the set_pwd is using an instance of WET's textfield! The syntax that you are using in the code should actualy be creating Watir te

Re: [Wtr-general] Need help reading a file

2006-05-24 Thread Bret Pettichord
id = ie.cell(:text, ''AmberGlen Medical Corporation Service Agreement - 2004").idOn 5/24/06, Jassi Akkal <[EMAIL PROTECTED]> wrote: I need help reading an itemname and returingcorressponding ID from this html code defined below. id="b98e043c-2796-42a9-b4b1-b372e60533e9"objtype="12"objname="Document

Re: [Wtr-general] TypeError: can't convert NilClass into timeinterval

2006-05-24 Thread Bret Pettichord
Quang,You are using WET and it is unclear if perhaps WET has the problem. Have you asked the WET folks for help?It is hard to tell what version of Watir you are using. Knowing that would allow us to match up the error report to the source. Given these hurdles, my guess is that one of the delay sett

Re: [Wtr-general] bring_to_front() creates exception?

2006-05-24 Thread Bret Pettichord
Bernd,Looks like AutoIt isn't configured correctly. You could try to install it manually and see if it corrects your problem. BretOn 5/24/06, Paatsch, Bernd <[EMAIL PROTECTED]> wrote: Hello, I encounter following error in my script. What is the reason? c:/ruby/lib/ruby/gems/1.8/gems/

Re: [Wtr-general] Need help assigning/resolving variables in WATIR

2006-05-24 Thread Bret Pettichord
If you show us the HTML, we can show you a regexp (regular _expression_) that will match your doc id.Try this:  ie.ie.menubar = trueand see if you don't now have the option to view source.Bret On 5/24/06, Frank Legarreta <[EMAIL PROTECTED]> wrote: I am testing a web based document management system

Re: [Wtr-general] IFrame Support in WATIR 1.5?

2006-05-24 Thread Bret Pettichord
Is support for IFrames incorporated into the 1.5 release?  I didn't see any mention of this on the 1.5 roadmap (but I did see Jeff Wood post a patch back in November...)Hi Cliff,IFrames were supported in 1.4. Obviously, there is something more about them that you want supported. What specifically a

Re: [Wtr-general] TypeError: can't convert NilClass into timeinterval

2006-05-24 Thread Quang Tran
  gui.set_data({    :pwd => "Person"  })which calls this    def set_data (data)    data.each_pair {|key, value| send("set_#{key}", value)}   end    def  set_pwd(pwd)    $ie.frame(:name, RightFrame).text_field(:name, UserPwdField).set(pwd)   end  From: "Michael Bolton" <[EMAIL PROTECTED]>Reply

Re: [Wtr-general] TypeError: can't convert NilClass into time interval

2006-05-24 Thread Michael Bolton
Yes; I think I know what might be happening.  There's probably a problem with your code.   Can we see it, please?   ---Michael B. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Quang TranSent: May 24, 2006 10:16 PMTo: wtr-general@rubyforge.orgSubject: [Wtr-general] TypeErro

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-05-24 Thread Bret Pettichord
On 5/24/06, David Schmidt <[EMAIL PROTECTED]> wrote: > The reason for my concern is that this error is in> check_for_http_error. This method isn't called until after all the> wait checks are complete and Watir thinks that the page is already> fully loaded. So that means that there is a bug in the

[Wtr-general] TypeError: can't convert NilClass into time interval

2006-05-24 Thread Quang Tran
Hi If anyone could help. I have a piece of code that simply tries to fill a text field with some text and when i execute the script i get this error message   TypeError: can't convert NilClass into time interval    C:/watir/Tests/../watir.rb:3439:in `sleep'    C:/watir/Tests/../watir.rb:3439:in `

Re: [Wtr-general] Need help assigning/resolving variables in WATIR

2006-05-24 Thread Andy Sipe
If the item you are looking for is always a check box then this should get you what you want id = ie.checkboxes[1].name #do other things with id -andy Original Message Follows From: "Frank Legarreta" <[EMAIL PROTECTED]> Reply-To: wtr-general@rubyforge.org To: wtr-general@rubyforge.org

[Wtr-general] IFrame Support in WATIR 1.5?

2006-05-24 Thread Clifford Morehead
Is support for IFrames incorporated into the 1.5 release?  I didn't see any mention of this on the 1.5 roadmap (but I did see Jeff Wood post a patch back in November...)Any details you can provide would be appreciated.  Thanks!  -Cliff Oh yeah, WATIR rocks... :-) __

[Wtr-general] bring_to_front() creates exception?

2006-05-24 Thread Paatsch, Bernd
Title: bring_to_front() creates exception? Hello, I encounter following error in my script. What is the reason? c:/ruby/lib/ruby/gems/1.8/gems/watir-1.4.1/./watir.rb:1301:in `initialize': fail ed to create WIN32OLE object from `AutoItX3.Control' (WIN32OLERuntimeError)     HRESULT error co

[Wtr-general] Need help reading a file

2006-05-24 Thread Jassi Akkal
Hi, I need help reading an itemname and returing corressponding ID from this html code defined below. AmberGlen Medical Corporation Service Agreement - 2004 I then want to use this ID and replace in this code 'radio(:name, "selectionids", "ID").set Can

[Wtr-general] Need help assigning/resolving variables in WATIR

2006-05-24 Thread Frank Legarreta
I am testing a web based document management system that assigns a unique “Document Id” to each document upon creation. Unfortunately viewing source on the page is not an option, but ie.html does give me the html source, however, in one continuous string. Executing ie.show_all_objects on the pa

Re: [Wtr-general] Blocking popup window?

2006-05-24 Thread Mike Townley
Title: Blocking popup window? I think you need to split off a separate thread for the popup detection. Basically, you have the popup checker running in a loop in a separate thread from the links being clicked.   So in pseudo code:   A=Thread.new(method_that_loops_through_links) B=thr

[Wtr-general] Blocking popup window?

2006-05-24 Thread Paatsch, Bernd
Title: Blocking popup window? Hello all, I use watir version 1.4.1. My script finds certain links and adds them in an array and then follows each of the links (see code below). However I get once in a while a IE popup window "Do you want to save changes: OK, CANCEL". However ie.goto(link)

Re: [Wtr-general] Grouping Test Cases

2006-05-24 Thread Mike Townley
The way I had been going about it: TestSuite Requires testcase_classes, is the master test script. Testcase_classes are classes containing individual testcases "class TestClass < Test::Unit::TestCase" Test cases are methods with nam

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-05-24 Thread David Schmidt
Bret Pettichord wrote: > On 5/24/06, *David Schmidt* <[EMAIL PROTECTED] > > wrote: > > This is the same problem that was occurring in wait(). The COM object > document method is called when the document method isn't available. > I've seen this if a page or fr

Re: [Wtr-general] Grouping Test Cases

2006-05-24 Thread Chris McMahon
On 5/24/06, Adrian Rutter <[EMAIL PROTECTED]> wrote: > > Could anyone tell me how they are grouping test cases and running suites > within Watir? > #run_suite.rb topdir = File.join(File.dirname(__FILE__)) Dir.chdir topdir do tests = Dir["test*"] tests.each{|x| require x} end _

[Wtr-general] Grouping Test Cases

2006-05-24 Thread Adrian Rutter
Could anyone tell me how they are grouping test cases and running suites within Watir? Thanks Aidy --- This message and any attachment are confidential and may be privileged or otherwi

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-05-24 Thread Bret Pettichord
On 5/24/06, David Schmidt <[EMAIL PROTECTED]> wrote: This is the same problem that was occurring in wait().  The COM objectdocument method is called when the document method isn't available.I've seen this if a page or frame immediately kicks off a new page loadbefore all the wait checks are complet

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-05-24 Thread David Schmidt
Bret, This is the same problem that was occurring in wait(). The COM object document method is called when the document method isn't available. I've seen this if a page or frame immediately kicks off a new page load before all the wait checks are complete or perhaps if the check is called be

Re: [Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-05-24 Thread Bret Pettichord
This looks like a new problem, although related to problems we've seen before (and mostly fixed). I'm puzzled how it could happen -- but i'm not sure what information to ask for.Bret On 5/24/06, Manish Sapariya <[EMAIL PROTECTED]> wrote: Is this one known?I searched through the archive and could no

[Wtr-general] New Development Gem 1.5.1.1017 Published

2006-05-24 Thread Bret Pettichord
I've published a new development gem for your convenience. http://wiki.openqa.org/display/WTR/Development+Builds The version change from 1.5.0 to 1.5.1 was made simply to avoid a problem with the gem install system. ___ Wtr-general mailing list Wtr-gene

[Wtr-general] `method_missing': document (WIN32OLERuntimeError)

2006-05-24 Thread Manish Sapariya
Is this one known? I searched through the archive and could not find anything similar to this. I saw this only first time, and I am not sure whether I will see this again with the same script. Please let me know if HTML page or code will help isolate this problem. Thanks and Regards, Manish c:/p