Example #1
0
        public void check_jim_is_on_page()
        {
            ContactGridPageObject page = new ContactGridPageObject(browser);

            page.WaitUntilGridIsPopulatedWithRows(browser);
            Assert.IsNotNull(page.GetRowByRowTextContent("Jim"));
        }
Example #2
0
        public void create_contact_appears_on_grid()
        {
            ContactDataObject contact = new ContactDataObject();

            contact.Company = "Guidepost Systems LLC";
            contact.Region  = "Oregon";
            contact.LName   = "Holmes";
            contact.FName   = "Lydia";

            ContactGridPageObject  gridPage   = new ContactGridPageObject(browser);
            ContactPopUpPageObject editWindow = gridPage.GetContactPopUp();

            editWindow.Company = contact.Company;
            editWindow.Region  = contact.Region;
            editWindow.LName   = contact.LName;
            editWindow.FName   = contact.FName;
            editWindow.UpdateButton.Click();
            string testXPath = "//tbody/tr[contains(.,'Lydia')]";

            wait.Until(ExpectedConditions.ElementExists(By.XPath(testXPath)));
            Assert.IsNotNull(gridPage.GetRowByRowTextContent("Lydia"));
        }