public void E2E2_EditEmployee() { Index indexPage = new Index(_driver, BASE_URL, _wait); indexPage.Open(); indexPage.GoToEmployees(); EmployeesList listPage = new EmployeesList(_driver, BASE_URL, _wait); EmployeeDataRow employee = listPage.GetLast(); listPage.Loading(); string employeeId = employee.EmployeeID.Text; Assert.False(string.IsNullOrEmpty(employeeId)); Assert.AreEqual("Test Employee", employee.Name.Text); Assert.AreEqual("Test Address", employee.Address.Text); Assert.AreEqual("test@email", employee.Email.Text); Assert.AreEqual("123-456-789", employee.PhoneNumber.Text); listPage.EditEmployee(employee); EmployeeEdit editPage = new EmployeeEdit(_driver, BASE_URL, employeeId, _wait); editPage.Email.Clear(); editPage.Email.SendKeys("newtest@email"); editPage.PhoneNumber.Clear(); editPage.PhoneNumber.SendKeys("123-456-789new"); editPage.SaveEmployee(); listPage = new EmployeesList(_driver, BASE_URL, _wait); employee = listPage.GetLast(); listPage.Loading(); Assert.AreEqual("newtest@email", employee.Email.Text); Assert.AreEqual("123-456-789new", employee.PhoneNumber.Text); }