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
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
___
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
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
_
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
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.
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
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
__
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
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.
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
__
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
___
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
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
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
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
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.
---
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
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
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.
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
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
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?
--
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
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.
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
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
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=
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
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
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
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
32 matches
Mail list logo