Version: Available or changed with runtime version 1.0.
Represents a variable type that can be used to test Page Application Objects.
Instance methods
The following methods are available on instances of the TestPage data type.
| Method name | Description |
|---|---|
| Cancel() | Gets the Cancel system action. |
| Caption() | Gets the caption of the test page. |
| Close() | Closes an open test page. |
| Edit() | Gets the Edit system action. |
| Editable() | Gets the runtime value of the Editable property on a test page. |
| Expand(Boolean) | Expands rows on a test page. |
| FindFirstField(TestField, Any) | Finds the first field in the data set that is displayed on a test page. |
| FindNextField(TestField, Any) | Finds the next field in the data set that is displayed on a test page. |
| FindPreviousField(TestField, Any) | Finds the previous field in the data set that is displayed on a test page. |
| First() | Sets the current row of the test page as the first row in the data set. |
| GetField(Integer) | Gets a field on a test page. |
| GetValidationError([Integer]) | Gets the list of all validation error that occurred on a test page as a string. |
| GoToKey([Any,...]) | Finds the row in a data set on the test page that is identified by the specified values. |
| GoToRecord(Record) | Finds the specified record in a data set on a test page. |
| IsExpanded() | Specifies if rows on a test page are expanded. |
| Last() | Sets the current row of the test page as the last row in the data set. |
| New() | Sets the current row of the test page to an empty row in a data set. |
| Next() | Sets the current row of the test page as the next row in the data set. |
| No() | Gets the No system action. |
| OK() | Gets the OK system action. |
| OpenEdit() | Opens a test page in edit mode. |
| OpenNew() | Opens a blank test page in edit mode. |
| OpenView() | Opens a test page in view mode. |
| Prev() | Sets the current row of the test page as the previous row in the data set. |
| Previous() | Sets the current row of the test page as the previous row in the data set. |
| RunPageBackgroundTask(Integer [, var Dictionary of [Text, Text]] [, Boolean]) | Runs the page background task codeunit in a child session and waits for its completion. Note that page background task completion triggers are not invoked by default; see parameter "RunCompletionTriggers". |
| Trap() | Traps the next test page that is invoked and assigns it to the test page variable. |
| ValidationErrorCount() | Gets the number of validation errors that occurred on the test page. |
| View() | Gets the View system action. |
| Yes() | Gets the Yes system action. |