public void Blog_HomeLoads() { var url = "https://staffordwilliams.com"; _appInsights = new ApplicationInsights(ConfigurationHelper.GetApplicationConfiguration().InstrumentationKey, url); try { _driver = WebDriverHelper.GetDriver(); _driver.Navigate().GoToUrl(url); var homeLink = _driver.FindElement(By.LinkText("stafford williams")); homeLink.ShouldNotBeNull(); _appInsights.Success("Home"); } catch (Exception e) { _appInsights.Error(e); WebDriverHelper.RecordFailure(url, "Home", _driver, e, _appInsights.Elapsed); throw; } }
public void Azure_SignalR_Pricing() { try { _driver = WebDriverHelper.GetDriver(); _appInsights = new ApplicationInsights(ConfigurationHelper.GetApplicationConfiguration().InstrumentationKey, _url); var fiveSecondWait = new OpenQA.Selenium.Support.UI.WebDriverWait(_driver, TimeSpan.FromSeconds(5)); _driver.Navigate().GoToUrl(_url); var home = new Home(_driver, fiveSecondWait); _appInsights.Success("Home"); var pricing = home.ClickPricing(); pricing.Search("signalr"); var signalRPricing = pricing.ClickSearchResult("Azure SignalR Service"); _appInsights.Success("Pricing"); signalRPricing.SelectRegion("Australia East"); signalRPricing.SelectCurrency("Australian Dollar ($)"); signalRPricing.Prices["Price / Unit / Day"].ShouldBe("$2.2106"); signalRPricing.Prices["Max Units"].ShouldBe("100"); } catch (Exception e) { _appInsights.Error(e); throw; } }