copy popup message
Obtain the message in a popup and store it in a variable.
Important:
This action is dedicated to Generic WebDriver.Name | Description | Type | Modifier |
---|---|---|---|
variable | The argument is used to hold the message displayed in the popup. | String | None |
timeout | Maximum time (in seconds) to wait for the message in the popup to be obtained. | String | None |
The content of the message displayed in the popup.
This action may be used within the following project items: test modules and user-defined actions.
You are testing a registration page.
- When the test leaves one or two some mandatory fields blank and clicks the Submit button, a popup appears to show the missing required fields, for instance, “The email address is required”.
- In the popup, the test will obtain the message and clicks the OK button.
window control click type
click news page submit left
 
variable timeout
copy popup message >>msg 5
 
button timeout
click popup OK 3
- copy popup message does not include the click popup action. Hence you ought to explicitly call the click popup action following copy popup message.