private static IEnumerable <object[]> HttpMethodsAndUrlsToTest(params HttpMethod[] methodsToTest) { foreach (string url in UrlsToTest.SelectMany(x => x)) { foreach (HttpMethod method in methodsToTest) { yield return(new object[] { method, url }); } } }
public void Navigation() { foreach (string webPage in UrlsToTest) { _driver.Navigate().GoToUrl(webPage); _driver.Navigate().GoToUrl(UrlsToTest.First()); _driver.Navigate().Back(); //Testing the actual é the start Url //StringAssert.AreEqualIgnoringCase(webPage, _driver.Url); } }