[Wtr-general] DL::DLError: too many callbacks are defined

2007-02-16 Thread Dave Munns
After running a lengthy script that processes lots of modal dialogs and javascript alerts, I get the infamous error, DL::DLError: too many callbacks are defined. I am running Ruby 1.8.5-21 and Watir 1.5.0.1100 and it has been able to handle modal dialogs and javascript alerts with a modificatio

Re: [Wtr-general] Select List in Modal Dialog

2007-01-03 Thread Dave Munns
It turns out that there are multiple paths to my select_list and one of them worked. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5982&messageID=16771#16771 ___

[Wtr-general] Select List in Modal Dialog

2007-01-03 Thread Dave Munns
Inside a modal dialog, I can reference a select_list and see the text OPTIONS, using ie.modal_dialog.div(:index,49).table(:index,2).select_list(:index,1).html When I try to select a choice, nothing happens. I have tried: 1) ie.modal_dialog.div(:index,49).table(:index,2).select_list(:index,1).opt

Re: [Wtr-general] Referencing dynamically generated objects

2007-01-03 Thread Dave Munns
Thanks Brett, that worked! Is there documentation that describes the arguments available for each object? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5974&messageID=16751#16751 _

[Wtr-general] Referencing dynamically generated objects

2007-01-02 Thread Dave Munns
Happy New Year! I have a question that concerns dynamically generated html tags and how to reference them. In a specific frame, a certain operation creates a new object. This object was given a name by my automation tool to make it unique and recognizable by my tool. I can reference the object

Re: [Wtr-general] CRITICAL---Clicking Image Button in Application

2007-01-02 Thread Dave Munns
Woud you post the html for the image? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5867&messageID=16714#16714 ___ Wtr-general mailing list Wtr-general@rubyforge.

Re: [Wtr-general] Simulate CNTRL-LEFT CLICK

2006-12-26 Thread Dave Munns
Here is the html for the object I want to control-leftclick: I do not see that action described in the html, but I can manually make it happen. ie.frame('fraNavigation').span(:id,'spnNodeText_120').html => "Settings" - Posted via

Re: [Wtr-general] Simulate CNTRL-LEFT CLICK

2006-12-19 Thread Dave Munns
The control left click on a specific object will invoke a frame with a list of data. No url's involved... - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5490&messageID=16357#16357 __

Re: [Wtr-general] Simulate CNTRL-LEFT CLICK

2006-12-19 Thread Dave Munns
I have seen examples that double click on an object ( fire_event("onDblClick") ), but have been unable to simulate a Control-Left Click. Any ideas? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5490&messag

Re: [Wtr-general] How to Find count for the text_field with same names

2006-12-14 Thread Dave Munns
That's where accessing an object by index may work. Try something like: ie.frame('ifyouhaveaframe').button(:index,2).html to see if it is accessing the correct object, then .click it. - Posted via Jive Forums http://forums.openqa.

Re: [Wtr-general] Modal Dialog dismissal launching Javascript alert window

2006-12-06 Thread Dave Munns
Managed to get this working, using click within modal_dialog and the recommended javascript alert window processing code. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=4892&messageID=15782#15782 __

Re: [Wtr-general] Deeply Nested html from Microsoft Report Server Viewer

2006-12-06 Thread Dave Munns
Using irb, flashing areas of the report window, and following html links eventually gets to answers. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5041&messageID=15783#15783 ___

Re: [Wtr-general] Memory access errors

2006-12-06 Thread Dave Munns
Reinstalling IE6 fixed the problem. It appears that an install of QTP6 affected some critical dlls. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=4779&messageID=15781#15781

Re: [Wtr-general] setting text field in table

2006-12-01 Thread Dave Munns
Thanks Paul. Referencing the text_field by index does indeed work. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5520&messageID=15507#15507 ___ Wtr-general mailin

[Wtr-general] setting text field in table

2006-11-29 Thread Dave Munns
This problem seems to defy conventional solutions. Does someone have a solution ? The html: irb> ie.frame('fraDataZone').table(:index,1).table(:index,1)[1].html => "\r\nStart Date\r\n" The screen has a lable, Start Date, followed by a text field. I have tried accessing the text field by :nam

[Wtr-general] Simulate CNTRL-LEFT CLICK

2006-11-28 Thread Dave Munns
I have the following html and I want to navigate to Best Practices - Operating System and CNTL-LEFT CLICK. 1) How do I reference that value? 2) How can a CNTRL-LEFT CLICK be simulated? irb> ie.frame('fraDataZone').form(:index,2).html => "\r\n http://perform-coll/L1033/images/imgIcoComplT

Re: [Wtr-general] WIN32OLERuntimeError - I get this error after two hours - see details

2006-11-09 Thread Dave Munns
Can you break up the test into smaller chunks? Say test1 checks one type of link and exits, Test2 checks another type of link and exits, Perhaps this workaround will get you more complete results, assuming it's a timing or space issue. ---

[Wtr-general] Deeply Nested html from Microsoft Report Server Viewer

2006-10-31 Thread Dave Munns
I am dealing with many reports that were generated from the Microsoft Report Server Viewer, according to the html. I want to code a wait_until that senses when the report is done being generated. Each report has a Document Map that appears after the message 'Report is being generated' disappears

Re: [Wtr-general] Javascript Alert windows

2006-10-27 Thread Dave Munns
Sometimes one just stumbles into a solution. ie.table(:index,1)[5][1].button(:id,'imgFinishButton').click For some reason I had to use button instead of image, even though the html indicated it was an image! - Posted via Jive F

Re: [Wtr-general] Javascript Alert windows

2006-10-27 Thread Dave Munns
I tried method 1 and method 2, with no success. I am using Watir 1.5 to support modal dialogs. Using irb I can access certain portions of the Javascript alert window, such as the title (I attach to the window by title) and 3 text areas that are DIV areas. The window has 2 buttons at the bottom.

Re: [Wtr-general] Handling multiple versions of a website [advice needed]

2006-10-24 Thread Dave Munns
I have written a product testing tool that automates the navigation (detecting GUI changes) through 320+ classes in a web-based gui. It also generates performance measurements. The tool is designed in 3 levels ( each in an rb file): 1) the high level test classes (named to easily map to the GUI

[Wtr-general] Modal Dialog dismissal launching Javascript alert window

2006-10-20 Thread Dave Munns
I have a modal dialog with an OK button. When clicked, the modal dialog is dismissed and a Javascript alert window appears with a Close button. I want to click the Close button to dismiss this window. What I am finding is that usig click_no_wait on the modal dialog OK button does not dismiss th

Re: [Wtr-general] Modal Dialog and checkbox

2006-10-20 Thread Dave Munns
Without a sufficient delay (in this case 10 seconds), checkboxes are not recognized in the modal dialog - running (nodebug) in Eclipse or running from the command line. This workaround is simple and acceptable short term. Would retry logic in watir be a possible long term solution? --

Re: [Wtr-general] Modal Dialog and checkbox

2006-10-19 Thread Dave Munns
I'll answer my own question. If the code sleeps long enough, in this case 10 seconds, the checkboxes are recognized and set. This seems to be the common cure for Modal dialog-itis - Posted via Jive Forums http://forums.openqa

[Wtr-general] Modal Dialog and checkbox

2006-10-19 Thread Dave Munns
I am navigating a modal dialog with radio buttons, buttons, and checkboxes. Everything works when I run in debug mode (using Eclipse). When I run nondebug, the checkbox identifiers (by id) are not recognized. Example code: ie.modal_dialog.checkbox( :id, 'inpCheckBoxDC_19' ).set ie.modal_dialog.

Re: [Wtr-general] Memory access errors

2006-10-16 Thread Dave Munns
The error comes from an iexpore.exe - Application Error window: The instruction at "0x4a5b02f1" referenced memory at "0x0004". The memory could not be read. At 1st I thought it was my test tool, but when I run the product I am testing, I get the same error message. I reinstalled the produc

[Wtr-general] Memory access errors

2006-10-13 Thread Dave Munns
I have built a test tool that has suddenly started terminating with memory access errors. The culprit appears to be code that I have added to traverse links in a frame, and if a link exists, it clicks on that link. Using the eclipse IDE debugger, the code appears to be working as expected. I am

Re: [Wtr-general] cell access

2006-10-10 Thread Dave Munns
Span and theIndex are good for locating items. In order to construct a loop and access all items, how does one find out the number of items in a span element? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=

Re: [Wtr-general] links in a frame

2006-10-09 Thread Dave Munns
Thanks to other postings, I found a solution using irb which is extremely helpful. 0) irb 1) ie = Watir::IE.start("url of product") 2) ie = Watir::IE.attach( :title, / Product Title/) 3) ie.show_frames 4) ie.frame("frame-of-interest").show_frames 5) ie.frame("frame-of-interest").frame("nested-fram

[Wtr-general] links in a frame

2006-10-09 Thread Dave Munns
After reviewing the forum and trying various ways to access a list of links in a frame, I now ask here. Given a frame that appears to contain a list of links, how does one click on one of these links? Using irb, I have tested variants on: ie.frame("fraDataZone").link(:text, "ADF").click irb ret

Re: [Wtr-general] How do you access an image that doesn't have img in the HTML tag?

2006-10-05 Thread Dave Munns
Try ie.button( :src, "\images\SelectRow1.gif" ).click You may to specify the full directory path (C:\whatever...\images\SelectRow1.gif) - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=4672&messageID=12948#12

[Wtr-general] Navigating in IE frames

2006-08-10 Thread Dave Munns
Hi. I am building a test tool to automate navigation through a UI with IE frames. Text fields, buttons, lists, and web dialog boxes are all targets for my tool. The examples I see in the watir user guide don't mention frames. I have tried navigating to a text field, using the user guide example