//[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");
        }
예제 #2
0
        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();
        }
예제 #4
0
        //[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");
        }
예제 #5
0
        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");
        }
예제 #7
0
        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"));
        }
예제 #8
0
        //[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();
        }
예제 #9
0
        //[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");
        }