Exemplo n.º 1
0
        public void DropDownTest()
        {
            using (IWebDriver driver = new SelectDriver().Driver)
            {
                // arrange
                var homePage = new HomePage(driver);
                homePage.NavigateTo();
                homePage.MarriageApplicationlink.Click();
                var marriageLicenseApplicationPage = new PageObjectModels.MarriageLicenseApplicationPage(driver);
                marriageLicenseApplicationPage.PublicMarriageButton.Click();
                var publicMarriageApplicationPage = new PageObjectModels.PublicMarriageApplicationPage(driver);
                // act
                // Wizard Navigation Test code for radio buttons and next button and select dropdown
                publicMarriageApplicationPage.NextButton.Click();

                publicMarriageApplicationPage.SelectedRadio.Click();

                publicMarriageApplicationPage.NextButton.Click();

                SelectElement idType = new SelectElement(publicMarriageApplicationPage.IdTypeDropDown);
                idType.SelectByText("Passport");

                // assert
                Assert.AreEqual("Passport", idType.SelectedOption.Text);
            }
        }
Exemplo n.º 2
0
        public void PublicMarriargeApplicationPage()
        {
            using (IWebDriver driver = new SelectDriver().Driver)
            {
                // arrange
                var homePage = new HomePage(driver);
                homePage.NavigateTo();

                // act
                homePage.MarriageApplicationlink.Click();
                var marriageLicenseApplicationPage = new PageObjectModels.MarriageLicenseApplicationPage(driver);
                marriageLicenseApplicationPage.PublicMarriageButton.Click();

                // assert
                var publicMarriageApplicationPage = new PageObjectModels.PublicMarriageApplicationPage(driver);
                publicMarriageApplicationPage.EnsurePageLoaded();
            }
        }