public void RegisterAndLoginTest() { var mainPage = new MainStorePage(webDriver, wait); mainPage.Load(); mainPage.RegisterLink.Click(); var registerPage = new RegisterPage(webDriver, wait); var(email, password) = registerPage.CreateAccount(); mainPage.Logout.Click(); mainPage.Login(email, password); mainPage.Logout.Click(); }