public void NavigateToRegister() { ap_POM = new AutorizePage_POM(chrome); RegistrationPage_POM rp_POM = new RegistrationPage_POM(chrome); ap_POM.ClickRegisterLink(); string navigatedUrl = rp_POM.GetPageTitle(); Assert.AreEqual("Регистрация", navigatedUrl); }
public void CheckBackRedirection() { AutorizePage_POM ap_POM = new AutorizePage_POM(chrome); string expextedTitle = chrome.Title; ap_POM.ClickRegisterLink(); Assert.AreEqual("Вход", chrome.Title); chrome.Navigate().Back(); Assert.AreEqual(expextedTitle, chrome.Title); }