get popup default text

Description

Retrieve the default text of the user-entry field of one or more recent prompt popups.

Arguments

Valid contexts

This action may be used within the following project items: test modules and user-defined actions.

Notes

Applicable Built-In Settings

The following settings are applicable to this action: remove double quotes from cells, standard ASCII only.

Applicable Controls

This action is applicable to the following controls: none.

Example - Case 1: A single popup

Scenario: You are testing a customer information page with a button, Sign up, used for submitting one’s name:

  1. Upon clicking the button, a prompt appears with one input field and two buttons: OK and Cancel.

    注意: 
    The prompt popup displays the fields:

    • Message: Please enter your name
    • Default text: Joe Doe
  2. The test enters a new input value, e.g. Jane Doe, and then clicks OK to proceed.

  3. The test then retrieves the default text of the prompt popup based on a given message.

Action Lines

Result

Example - Case 2: A sequence of multiple popups

Scenario: You are testing an email registration page, with a button, Sign up, used for submitting a new email address:

  1. Upon clicking the button, a prompt popup appears with one input field and two buttons: OK and Cancel.

    注意: 
    This first prompt popup displays the following:

    • Message: Please enter your email address
    • Default text: Joe.doe@example.com
  2. An invalid email address is entered (e.g. Doe), and then OK is clicked to proceed.

  3. An alert popup is triggered to notify user of the invalid email address. It has one button, OK .

  4. The test clicks OK in the alert to dismiss it and proceed.

  5. An additional prompt popup appears emphasizing the need for a valid email address.

    注意: 
    This second prompt popup displays:

    • Message: Please enter a valid email
    • Default text: Jane.doe@example.com
  6. A valid email address, e.g. Jonnie.doe@gmail.com, is now entered, and OK clicked.

  7. The test then retrieves the following default texts of the user-entry prompts:

    • The default text of the prompt popup whose message is Please enter a valid email.
    • The default text of the prompt popup whose message is Please enter your email address. (Hint: We can retrieve both default texts in a single action call by specifying prompts whose messages begin with the string Please enter)

Action Lines

Result

Related information

click on next popup

enter text on next popup

get popup message

check popup message

check popup default text

clear popup queue


Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGearはLogiGear Corporationの登録商標であり、Action Based TestingおよびTestArchitectはLogiGear Corporationの商標です。ここに記載されているその他の商標は、各所有者の財産です。

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400