//[Ignore("Reason")] public void DoSomethingOnAWebPageWithSelenium2() { var guineaPigPage = new GuineaPigPage(Driver, "https://saucelabs.com/"); // verify the page title is correct - this is actually checked as part of the constructor above. Driver.Title.ShouldContain("I am a page title - Sauce Labs"); }
public void PageTitle([ValueSource(typeof(SaucePlatform), "GetPlatforms")] SaucePlatform platform) { Setup(platform); var guineaPigPage = new GuineaPigPage(Driver, "https://saucelabs.com/"); // verify the page title is correct - this is actually checked as part of the constructor above. Driver.Title.ShouldContain("I am a page title - Sauce Labs"); }
//[Ignore("Reason")] public void DoSomethingElseAgainOnAWebPageWithSelenium2() { var guineaPigPage = new GuineaPigPage(Driver, "https://saucelabs.com/"); // read the useragent string off the page var useragent = guineaPigPage.GetUserAgent(); useragent.ShouldNotBeNull(); }
//[Ignore("Reason")] public void DoSomethingOnAWebPageWithSelenium(int data) { //SauceOps supports NUnit data-driven tests Console.WriteLine(@"My data is: " + data); var guineaPigPage = new GuineaPigPage(Driver, "https://saucelabs.com/"); // verify the page title is correct - this is actually checked as part of the constructor above. Driver.Title.ShouldContain("I am a page title - Sauce Labs"); }
public void UserAgentPresent([ValueSource(typeof(SaucePlatform), "GetPlatforms")] SaucePlatform platform) { Setup(platform); var guineaPigPage = new GuineaPigPage(Driver, "https://saucelabs.com/"); // read the useragent string off the page var useragent = guineaPigPage.GetUserAgent(); Assert.IsNotNull(useragent); }
//[Ignore("Reason")] public void DoSomethingElseOnAWebPageWithSelenium2() { var guineaPigPage = new GuineaPigPage(Driver, "https://saucelabs.com/"); // find and click the link on the page guineaPigPage.ClickLink(); // verify the browser was navigated to the correct page Driver.Url.ShouldContain("saucelabs.com/test-guinea-pig2.html"); }
public void LinkWorks([ValueSource(typeof(SaucePlatform), "GetPlatforms")] SaucePlatform platform) { Setup(platform); var guineaPigPage = new GuineaPigPage(Driver, "https://saucelabs.com/"); // find and click the link on the page guineaPigPage.ClickLink(); // verify the browser was navigated to the correct page Assert.IsTrue(Driver.Url.Contains("saucelabs.com/test-guinea-pig2.html")); }
//[Ignore("Need OpenSauce")] public void DoSomethingElseAgainOnAWebPageWithSelenium() { //Console.WriteLine("In DoSomethingElseAgainOnAWebPageWithSelenium"); //Console.WriteLine(Driver == null ? "Driver is null" : "Driver good"); var guineaPigPage = new GuineaPigPage(Driver, "https://saucelabs.com/"); // read the useragent string off the page var useragent = guineaPigPage.GetUserAgent(); useragent.ShouldNotBeNull(); }
//[Ignore("Need OpenSauce")] public void DoSomethingElseOnAWebPageWithSelenium() { //Console.WriteLine("In DoSomethingElseOnAWebPageWithSelenium"); //Console.WriteLine(Driver == null ? "Driver is null" : "Driver good"); var guineaPigPage = new GuineaPigPage(Driver, "https://saucelabs.com/"); // find and click the link on the page guineaPigPage.ClickLink(); // verify the browser was navigated to the correct page Driver.Url.ShouldContain("saucelabs.com/test-guinea-pig2.html"); }