Tutorials
From the first test to a suite you can maintain, one lesson at a time. Each lesson builds on the one before it.
Every lesson adds to the same project and tests the practice pages, so everything you write runs as it is. The project at the end of each lesson is a tag in VAF-Tutorial on GitHub, if you want to compare or start from the middle. You need Visual Studio 2026 (or the .NET 10 SDK) and Google Chrome.
-
1
Your first test
Create a test project, add VAF and run a test that opens a practice page and checks its title.
-
2
Map your first page
Describe the sign-up form as page objects — the app, its sections and their elements — and write a test that fills it in and checks what the server received.
-
3
Good and bad locators
Map one screen twice, with stable and with fragile locators, and see which of them survive a redesign.
-
4
More controls
Drop-down lists, check boxes, radio buttons, a date picker and a file upload, and the checks that go with them.
-
5
Shared steps and a test base
Move the chains out of the tests into steps named after what the user does, and the browser into a test base.
-
6
Waiting and reports
Let VAF wait for a spinner and for late content, and get an HTML report and a screenshot when a test fails.