コード例 #1
0
        //[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();
        }
コード例 #2
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);
        }
コード例 #3
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();
        }