# TestPage.No() Method
> Version: _Available or changed with runtime version 1.0._
Gets the No system action.
## Syntax
```al
Action :=   TestPage.No()
```
## Parameters
TestPage
Type: testpage-data-type
An instance of the testpage-data-type data type.
## Return Value
Action
Type: ../testaction/testaction-data-type
The No system action.
## Remarks
The No action is used to dismiss a modal page or test page.
The No method just retrieves the No system action, but does not execute it. To invoke the No action on the test page use the ../testaction/testaction-invoke-method, as shown in the example below.
## Example
The following example uses a handler method to dismiss the `"Post and Send Confirmation"` modal test page when invoked in code.
```
[ModalPageHandler]
procedure PostandSendPageHandlerNo(var PostandSendConfirmation: TestPage "Post and Send Confirmation")
begin
    PostandSendConfirmation.No.Invoke;
end;
```
## Related information
testpage-data-type
../testaction/testaction-invoke-method
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/testpage/testpage-no-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/testpage/testpage-no-method/
