Robot Framework Popup window handling keyword combat

Source: Internet
Author: User

1.1 Popup window processing keyword 5.8.1 Alert should be present keyword

Press F5 to see a description of the alert should be present keyword, as

Alert should be Present [text=]

To verify that the warning box is available, the parameter text= fills in the warning box prompt, or it can be empty, and if the argument "text" is a non-empty string, it also confirms that the message for the alert is equal to "text". If the parameter "text" is inconsistent with the actual output, the test result validation fails.

Project Example one: (Verification success example)

Code implementation:

Note: If the parameter "text" is a non-empty string, it also confirms that the alert message equals "text".

Operation Result:

Project Example two: (Verification failure example)

Code implementation:

Operation Result:

5.8.2 Get Alert Message keyword

Press F5 to see a description of the Get Alert message keyword, such as

Get Alert Message

Used to get a warning message, usually we pass the obtained text to a variable and print the result for viewing.

Project Examples:

Code implementation:

Operation Result:

5.8.3 Confirm actione keyword

Press F5 to see a description of the Confirm action keyword, such as

Confirm Action []

For warning Popup Confirmation action, by default, this keyword selects the dialog box for the "OK" option.

Project Examples:

Code implementation:

Operation Result:

5.8.4 Choose Cancel on Next confirmation keyword

Press F5 to see a description of the Choose Cancel on Next confirmation keyword, as

Choose Cancel on Next confirmation []

Used for confirm action warning box point cancel operation.

Note: Choose OK on Next confirmation keyword is used for warning box Point OK operation, confirm action by default is a click OK.

Project Examples:

Code implementation:

Operation Result:

5.8.5 input text into prompt text prompt box enter keywords

Press F5 to see a description of the Choose Cancel on Next confirmation keyword, as

Input text into Prompt [text]

The input for the alert popup text input box, with the Confirm Action warning box for the entire text popup.

Project Examples:

Code implementation:

Operation Result:

Robot Framework Popup window handling keyword combat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.