Exemplo n.º 1
0
        public void HoruzontalSliderTest()
        {
            Driver = GetChromeDriver();
            var herokuAppHomePage = new HerokuAppHomePage(Driver);

            herokuAppHomePage.GoTo();

            var horizntalSliderPage = herokuAppHomePage.ClickHorizontalSliderLink(Driver);
            var movedSlider         = horizntalSliderPage.MoveSlider(Driver);
        }
Exemplo n.º 2
0
        public void ContextMenuTest()
        {
            Driver = GetChromeDriver();
            var herokuAppHomePage = new HerokuAppHomePage(Driver);

            herokuAppHomePage.GoTo();

            var contextMenuPage = herokuAppHomePage.ClickContextMenuLink(Driver);
            var alertBox        = contextMenuPage.ClickElement(Driver);
        }
Exemplo n.º 3
0
        public void JavaScriptAlertsTest()
        {
            Driver = GetChromeDriver();
            var herokuAppHomePage = new HerokuAppHomePage(Driver);

            herokuAppHomePage.GoTo();

            var javaScriptAlertsPage = herokuAppHomePage.ClickJavaScriptAlertsLink(Driver);
            var jsPromtWindow        = javaScriptAlertsPage.VerifyJSPromtFunctionality(Driver);
        }
Exemplo n.º 4
0
        public void CheckBoxesTest()
        {
            Driver = GetChromeDriver();
            var herokuAppHomePage = new HerokuAppHomePage(Driver);

            herokuAppHomePage.GoTo();

            var checkBoxesPage  = herokuAppHomePage.ClickCheckBoxesLink(Driver);
            var checkBoxesState = checkBoxesPage.VerifyCheckBoxesState(Driver);
        }
Exemplo n.º 5
0
        public void ChallengingDomTest()
        {
            Driver = GetChromeDriver();
            var herokuAppHomePage = new HerokuAppHomePage(Driver);

            herokuAppHomePage.GoTo();

            var challengingDomPage = herokuAppHomePage.ClickChallengingDomLink(Driver);
            var tableText          = challengingDomPage.ReadTableCellText(Driver);
        }
Exemplo n.º 6
0
        public void DynamicControlsTest()
        {
            Driver = GetChromeDriver();
            var herokuAppHomePage = new HerokuAppHomePage(Driver);

            herokuAppHomePage.GoTo();

            var dynamicControlsPage = herokuAppHomePage.ClickDynamicControlsLink(Driver);
            var enterText           = dynamicControlsPage.EnableTextEnter("Example text");

            Assert.IsTrue(enterText.IsVisible);
        }
Exemplo n.º 7
0
        public void AddFiveElementsTest()
        {
            Driver = GetChromeDriver();
            var herokuAppHomePage = new HerokuAppHomePage(Driver);

            herokuAppHomePage.GoTo();

            var addRemoveElementsPage = herokuAppHomePage.ClickAddRemoveLink(Driver);
            var addFiveElements       = addRemoveElementsPage.ClickToAddFiveElements(Driver);

            Assert.IsTrue(addFiveElements.IsVisible);
        }
Exemplo n.º 8
0
        public void DropDownTest()
        {
            Driver = GetChromeDriver();
            var herokuAppHomePage = new HerokuAppHomePage(Driver);

            herokuAppHomePage.GoTo();

            var dropDownPage = herokuAppHomePage.ClickDropDownLink(Driver);
            var dropDown     = dropDownPage.SelectDropDownOption(Driver);

            Assert.IsTrue(dropDown.IsVisible);
        }
Exemplo n.º 9
0
        public void FormAuthenticationTest()
        {
            Driver = GetChromeDriver();

            var loginUser = new LoginUser();

            loginUser.Username = "******";
            loginUser.Password = "******";

            var herokuAppHomePage = new HerokuAppHomePage(Driver);

            herokuAppHomePage.GoTo();

            var formAuthenticationPage = herokuAppHomePage.ClickFormAuthenticationLink(Driver);
            var loginPage = formAuthenticationPage.FillOutFormAndSubmit(loginUser);

            Assert.IsTrue(loginPage.IsVisible);
        }