コード例 #1
0
        public void Test003_NavigateToChildSite()
        {
            Trace.WriteLine(BasePage.RunningTestKeyWord + "'Navigate to Child Site'");

            var hostSiteManagementPage = new HostSiteManagementPage(_driver);

            hostSiteManagementPage.OpenUsingButtons(_baseUrl);

            hostSiteManagementPage.NavigateToChildSite(_baseUrl, _siteAlias);

            var installerPage = new InstallerPage(_driver);

            installerPage.WelcomeScreen();

            Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT current window Title");
            Assert.That(installerPage.CurrentWindowTitle(), Is.StringContaining(_siteName + " > Home"),
                        "The website name is not correct");

            Trace.WriteLine(BasePage.TraceLevelPage + "ASSERT current window Url");
            Assert.That(installerPage.CurrentWindowUrl(), Is.EqualTo("http://" + _baseUrl + "/" + _siteAlias),
                        "The website URL is not correct");
        }