This email is to be read subject to the disclaimer below.


Hello all,

I've installed Watir 1.5 (1.5.1.1100) and now trying to create some tests that involve modal dialogues. However, I am having no luck. If someone could suggest what I am doing wrong, that would be great.

The way I create the modal window:
        window.showModalDialog("Test.asp", aArgs, "center:yes;dialogHeight:130px;dialogWidth:360px;status=no;help=no;edge:sunken");

This is how I access the modal window (ie. through a context menu):
        ie.frame(:name, "Frame").table(:id, "Table1")[indexX][indexY].fireEvent("oncontextmenu")
        ie.frame(:name, "Frame").button(:caption, "Open Modal").fireEvent("onclick")

I then try to attach to the modal window:
        modal = ie.modal_dialog
        modal.text_field(:name, "textbox").set("hello")

Best Regards

Leon Ouretski


--------------------
NOTICE - This communication contains information which is confidential and the copyright of Ernst & Young or a third party.

If you are not the intended recipient of this communication please delete and destroy all copies and telephone Ernst & Young on 1800 655 717 immediately. If you are the intended recipient of this communication you should not copy, disclose or distribute this communication without the authority of Ernst & Young.

Any views expressed in this Communication are those of the individual sender, except where the sender specifically states them to be the views of Ernst & Young.

Except as required at law, Ernst & Young does not represent, warrant and/or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.

Liability limited by a scheme approved under Professional Standards Legislation.
--------------------


If this communication is a "commercial electronic message" (as defined in the Spam Act 2003) and you do not wish to receive communications such as this, please forward this communication to [EMAIL PROTECTED]
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to