public void WhenSellerAddsANewEducationWithFollowingData(Table table) { var details = table.CreateSet <EducationDetails>(); foreach (EducationDetails education in details) { ProfilePage.AddEducation(education.University, education.Country, education.Title, education.Degree, education.Year); } }
public void ThenIShouldAbleToUpdateMyEducationInformation() { ProfilePage profilePage = new ProfilePage(Driver); profilePage.AddEducation(); try { var spanTex = Driver.FindElement(By.XPath("//div[@class='ant-message-custom-content ant-message-success'][contains(.,'Added record')]")).Text; Assert.IsNotEmpty(spanTex); } catch (Exception e) { _ = e.Message; } profilePage.EditEducation(); try { var spanTex = Driver.FindElement(By.XPath("(//span[contains(.,'Updated Education')])[2]")).Text; Assert.IsNotEmpty(spanTex); } catch (Exception e) { _ = e.Message; } profilePage.DeleteEducation(); try { var spanTex = Driver.FindElement(By.XPath("(//span[contains(.,'Deleted')])[2]")).Text; Assert.IsNotEmpty(spanTex); } catch (Exception e) { _ = e.Message; } }
public void WhenAddsEducationDetails() { profile.AddEducation(); }
public void GivenICanAddThisEducation(Table table) { dynamic data = table.CreateDynamicInstance(); ProfilePage.AddEducation(data.University, data.Country, data.Title, data.Degree, Convert.ToString(data.GraduationYear)); }
public void WhenUserAddsEducationDetails() { ppobj.AddEducation(CommonDriver.driver); }