![]()
API Guide - Popup Dialog |
Courses in c#, ruby, shell scripting, Software testing courses and more
|
|||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| Class | WET::ModalDialog |
| In: |
ModalDialog.rb
|
| Parent: | Object |
Class representing a Modal Dialog. Modal dialogs in a browser are created when a Javascript alert or prompt is used; or when the Security window is invoked.
WET ModalDialogs objects are created by using the ‘Dialog’ method in the Browser class.
For example:
Browser("title:=Google").Dialog("title:=Microsoft Internet Explorer")
Get a Button inside this window using the properties specified as args. The commonly used properties for a button are:- *text - The text displayed on the button *index - The order in which the button appears on the window
Get a Combobox inside this window using the properties specified as args. The commonly used properties for a WinComboBox are:- *index - The order in which the Combobox appears on the window
| WET is a opensource automated web testing tool which uses Watir as the library to drive web pages. WET drives an IE Browser directly and so the automated testing done using WET is equivalent to how a user would drive the web pages. WET extends the scripting abilities of Watir and also offers the convenience of recorders. It is licensed under LGPL and BSD style open source licenses. |