modal dialogs. what is a modal dialog? a modal dialog is a separate window that remains in focus...
TRANSCRIPT
Modal Dialogs
What is a Modal Dialog?
A modal dialog is a separate window that remains in focus until it
is closed by the user. During this time the eValid browser does not
have focus. Recording modal dialogs require a separate recording
technique.
Modal Dialogs: Initiate Modal DialogStep 1 of 17
Begin the test by navigating to a
link that will pop up the modal
dialog and click
Record > Start Recording.
Modal Dialogs: Initiate Modal DialogStep 2 of 17
Click on the link to initiate the modal
dialog.
Modal Dialogs: Using Insert CommandStep 3 of 17
For each interaction with the modal
dialog, a comparable command must be
added into the script using the Insert
Command menu on the Script File
Window toolbar.
Modal Dialogs: Using Insert CommandStep 4 of 17
The first command to insert is
Insert > ModalDialog Commands >
ModalDialogWait.
Modal Dialogs: Using Insert CommandStep 5 of 17
Type 4000 (for example) after the command to make
eValid wait 4.0 seconds until the modal dialog is
available for interaction.
Modal Dialogs: Insert NameStep 6 of 17
Then select
Insert > ModalDialog Commands >
ModalDialogText and, in the script file
window, type the name that you want
submitted to the modal dialog between the
quotes.
Modal Dialogs: Insert NameStep 7 of 17
You will also want to type this same name into the modal dialog
itself.
Modal Dialogs: Tab to Next FieldStep 8 of 17
Since you are simulating a keyboard typing into the modal dialog fields, you may
want to TAB to the next field.
This is done by selecting Insert >
ModalDialog Commands >
ModalDialogTab.
Modal Dialogs: Insert PasswordStep 9 of 17
Enter password information by inserting
another ModalDialogText
command and typing your password between
the quotes. Type the password into the
Password box on the modal dialog as well.
Modal Dialogs: Insert PasswordStep 10 of 17
Next, select Insert > ModalDialog Commands >
ModalDialogEnter to submit an
Enter/Return key to the modal dialog.
Modal Dialogs: Insert PasswordStep 11 of 17
Give focus to the modal dialog
again, and press Enter/Return on the keyboard.
Modal Dialogs: Repeat for Unauthorized SituationsStep 12 of 17
If you have entered a username/password
combination that cannot be authorized, the modal dialog will return with the name
in the Name field, and the cursor position on the Password field.
Modal Dialogs: Repeat for Unauthorized SituationsStep 13 of 17
Again, enter a longer or extra
ModalDialogWait command to make sure the dialog is
available for interaction.
Modal Dialogs: Repeat for Unauthorized Situations Step 14 of 17
Then insert ModalDialogEnter
to submit the modal dialog again.
Bring focus back to the modal dialog
and press Enter/Return. (see
step 9)
Modal Dialogs: Repeat for Unauthorized Situations
Step 15 of 17
Repeat this process until an unauthorized message is displayed.
Modal Dialogs: Validate TextStep 16 of 17
Select some text that indicates an
unauthorized status and validate it using Record > Validate > Selected > Text.
Modal Dialogs: Resulting ScriptStep 17 of 17
The final script should be similar to the sample script at
the left.
Modal Dialogs: Complete Test
To run a complete test, return to the modal dialog and login with a
correct username/password combination and validate text that
indicates an authorized login.
Modal Dialogs: Complete Test
Note: please see the online documentation for settings relating to cache/no cache and cookies/no cookies, if such instances effect your login/password sequences.
Help > User Manual > Table of Contents
User Setup > Cache Manager