This issue depends on #30611
Add support for the ability to inject pages where a page is a Java class that represents the fields and forms on a given page, for example:
@TestUser
UserResource userResource;
@Page
LoginUsernamePasswordPage usernamePasswordPage;
void testLogin() {
usernamePasswordPage.login(userResource);
}