public virtual async Task <T> Redirect <T>() where T : PageObject { var result = PageObjectFactory.CreatePage <T>(Page); await VerifyPageTitle(result); return(result); }
public async Task <T> Click <T>(string selector) where T : PageObject { await Page.ClickOn(selector); var result = PageObjectFactory.CreatePage <T>(Page); await VerifyPageTitle(result); //todo: assert url is as expected (excluding tokens, but capture those in a dictionary for assessment in the test) Console.WriteLine($"{Page.Url} => {result.Url}"); return(result); }