How it works...

UI Handlers allow you to write code in your test to simulate interactions that would normally happen with the user. For example, being able to simulate the user by selecting Yes on a dialog box.

You need to tell the system that you expect there to be some sort of UI in your test. You do that by using the HandlerFunctions attribute and listing the names of the UI Handler functions associated with the test. You can list multiple handler functions for a test.

If you define a UI Handler function for a test, but it does not execute during the test, the test will result in an error.

Each type of UI Handler function requires a specific signature so that the UI can be handled accordingly. Make use of the Visual Studio Code IntelliSense to remind yourself of what signature to use:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.22.136