Example #1
0
        [Test]/*add proper wait*/
        public void ClickSimpleFormDemoPageTest()
        {
            PropertiesCollection.driver.Navigate().GoToUrl("https://www.seleniumeasy.com/test/");
            HomePageObject           homePage           = new HomePageObject();
            SingleFormDemoPageObject singleFormDemoPage = new SingleFormDemoPageObject();

            Thread.Sleep(1000);
            singleFormDemoPage = homePage.ClickSimpleFormDemoPage();
            Thread.Sleep(1000);
            singleFormDemoPage.txtMessageField.SendKeys("HelloWorld");
            Thread.Sleep(1000);
            singleFormDemoPage.btnShowMessage.Clicks();
            Thread.Sleep(1000);
            Assert.AreEqual(SeleniumGetMethods.GetText(singleFormDemoPage.txtMessageField), "HelloWorld");
        }