public MainPage OpenMainInBrowser(DriverType driverType) { _browser = new BrowserBase(driverType); _driver = _browser.GetDriver(); var url = _appConfiguration.GetApplicationConfigurationValue(ConfigurationEnums.RegistrationUrl); _driver.Navigate().GoToUrl(url); return(this); }
public void OpenLoginPageInBrowser(DriverType driverType) { _browser = new BrowserBase(driverType); _driver = _browser.GetDriver(); var url = _appConfiguration.GetApplicationConfigurationValue(ConfigurationEnums.RegistrationUrl); var endpoint = url + PageName; Log.Info($"Navigating to {endpoint}"); _driver.Navigate().GoToUrl(endpoint); }
public void GivenNavigateToWebApiPostsInBrowser(string driverType) { var browserType = (DriverType)Enum.Parse(typeof(DriverType), driverType); _browser = new BrowserBase(browserType); _driver = _browser.GetDriver(); _driver.Navigate().GoToUrl(_url); Log.Info("Navigating to " + _url); Assert.AreEqual(_driver.Url, "https://jsonplaceholder.typicode.com/posts"); }