Top Banner
Modal Dialogs
21

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.

Jan 29, 2016

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 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.

Modal Dialogs

Page 2: 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.

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.

Page 3: 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.

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.

Page 4: 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.

Modal Dialogs: Initiate Modal DialogStep 2 of 17

Click on the link to initiate the modal

dialog.

Page 5: 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.

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.

Page 6: 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.

Modal Dialogs: Using Insert CommandStep 4 of 17

The first command to insert is

Insert > ModalDialog Commands >

ModalDialogWait.

Page 7: 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.

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.

Page 8: 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.

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.

Page 9: 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.

Modal Dialogs: Insert NameStep 7 of 17

You will also want to type this same name into the modal dialog

itself.

Page 10: 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.

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.

Page 11: 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.

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.

Page 12: 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.

Modal Dialogs: Insert PasswordStep 10 of 17

Next, select Insert > ModalDialog Commands >

ModalDialogEnter to submit an

Enter/Return key to the modal dialog.

Page 13: 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.

Modal Dialogs: Insert PasswordStep 11 of 17

Give focus to the modal dialog

again, and press Enter/Return on the keyboard.

Page 14: 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.

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.

Page 15: 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.

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.

Page 16: 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.

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)

Page 17: 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.

Modal Dialogs: Repeat for Unauthorized Situations

Step 15 of 17

Repeat this process until an unauthorized message is displayed.

Page 18: 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.

Modal Dialogs: Validate TextStep 16 of 17

Select some text that indicates an

unauthorized status and validate it using Record > Validate > Selected > Text.

Page 19: 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.

Modal Dialogs: Resulting ScriptStep 17 of 17

The final script should be similar to the sample script at

the left.

Page 20: 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.

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.

Page 21: 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.

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