public void SetUp() { _web = new WebInteractionSelenium(CurrentTestCase); _web.Navigate(TestDataSet.homePage); _web.SetBrowserSize(1920, 1200); }
public void Init() { _web = new WebInteraction(CurrentTestCase.TestCaseResult.LogPostList, new SeleniumTafDriver(CurrentTestCase.TestCaseResult.LogPostList, new ChromeDriver())); CurrentTestCase.AddReport(new TestCaseExecutionPlainTextReport()); CurrentTestCase.AddReport(new TestCaseHtmlReport()); CurrentTestCase.Log(new LogPost.LogPostInfo("Browse to Skogsvårdsportalen")); _web.Navigate("https://skogsvardtestintern.sveaskog.se"); }
public void ClaremontSe() { var searchIcon = new DomElement(By .TagName("button") .AndByClass("icon")); var inputBox = new DomElement(By .TagName("input") .AndByAttributeValue("type", "text")); var inputBoxXPath = new DomElement(By .XPath("//input[@type='text']")); var testFestLink = new DomElement(By .TagName("a") .AndByAttributeValue("href", "/event/event-testfest-1218/")); _web.Navigate("http://www.claremont.se"); _web.Verify().CurrentUrl("https://www.claremont.se/"); _web.Click(searchIcon); _web.Write(inputBoxXPath, "Test"); _web.Type(inputBox, Keys.Enter); _web.Verify(testFestLink).Text("TestFest"); }