public void EditUserInfoByAdminWithoutPassword() { AdminPage.AdminButton.Click(); AdminPage.UserManageButton.Click(); var user = AccessExcelData.GetTestData <AdminPageUserModel>("RegisterPageData.xlsx", "DataSet2", "EditUserInfoByAdminWithoutPassword"); Assert.IsTrue(AdminPage.User1EditButton.Displayed); AdminPage.User1EditButton.Click(); AdminPage.FillUserEditForm(user); AdminPage.AssertErrorMessage("The Password field is required."); AdminPage.LogoutBtnAsAdmin.Click(); }