Пример #1
0
 public void UrlComparisonTest1()
 {
     RunInAllBrowsers(browser =>
     {
         browser.NavigateToUrl("/NoParentTest.aspx");
         AssertUI.CheckUrl(browser, url => url.Contains("NoParentTest.aspx"));
     });
 }
Пример #2
0
        public void PathAndHostUrlMatchTest4()
        {
            var browser = new BrowserWrapper(new MockIWebDriver(), new MockISeleniumTest(), new ScopeOptions());

            AssertUI.CheckUrl(browser, "//localhosta/path1/path2", UrlKind.Absolute, UriComponents.Path, UriComponents.Host);
        }
Пример #3
0
        public void PathUrlMatchTest4()
        {
            var browser = new BrowserWrapper(new MockIWebDriver(), new MockISeleniumTest(), new ScopeOptions());

            AssertUI.CheckUrl(browser, "https://localhost:12345/path1/path2/nonon", UrlKind.Absolute, UriComponents.Path);
        }
Пример #4
0
        public void PathUrlMatchTest()
        {
            var browser = new BrowserWrapper(new MockIWebDriver(), new MockISeleniumTest(), new ScopeOptions());

            AssertUI.CheckUrl(browser, "/path1/path2", UrlKind.Relative, UriComponents.Path);
        }
Пример #5
0
        public void HostUrlMatchTest2()
        {
            var browser = new BrowserWrapper(new MockIWebDriver(), new MockISeleniumTest(), new ScopeOptions());

            AssertUI.CheckUrl(browser, "https://localhosst:12345/", UrlKind.Absolute, UriComponents.Host);
        }
Пример #6
0
        public void PortUrlMatchTest2()
        {
            var browser = new BrowserWrapper(new MockIWebDriver(), new MockISeleniumTest(), new ScopeOptions());

            AssertUI.CheckUrl(browser, "https://ex.com/", UrlKind.Absolute, UriComponents.Port);
        }
Пример #7
0
        public void FragmentUrlMatchTest2()
        {
            var browser = new BrowserWrapper(new MockIWebDriver(), new MockISeleniumTest(), new ScopeOptions());

            AssertUI.CheckUrl(browser, "#fragment", UrlKind.Relative, UriComponents.Fragment);
        }
Пример #8
0
        public void FragmentUrlMatchTest()
        {
            var browser = new BrowserWrapper(new MockIWebDriver(), new MockISeleniumTest(), new ScopeOptions());

            AssertUI.CheckUrl(browser, "//localhost:12345/path1/path2#fragment", UrlKind.Absolute, UriComponents.Fragment);
        }
Пример #9
0
        public void QueryUrlMatchTest2()
        {
            var browser = new BrowserWrapper(new MockIWebDriver(), new MockISeleniumTest(), new ScopeOptions());

            AssertUI.CheckUrl(browser, "?query=1", UrlKind.Relative, UriComponents.Query);
        }