@Given("^I have the following Project$")
  public void theFollowingProject(DataTable table) {

    for (Map<String, String> map : table.asMaps(String.class, String.class)) {
      nameProj = map.get("name");
      startDate = map.get("start date");
      endDate = map.get("end date");
    }

    topMenu = newMainPage.getTopMenu();
    topMenu.createSuccessfullyProject(nameProj, startDate, endDate);
  }
Beispiel #2
0
 @And("^I submit following valid details to sign in$")
 public void I_enter_following_valid_details_to_sign_in(DataTable tables) throws Throwable {
   List<Map<String, String>> maps = tables.asMaps();
   for (Map<String, String> mp : maps) {
     signin.enterFirstname().clear();
     signin.enterFirstname().sendKeys(mp.get("firstname"));
     signin.lastName().clear();
     signin.lastName().sendKeys(mp.get("lastname"));
     signin.emailAddress().clear();
     signin.emailAddress().sendKeys(mp.get("email"));
     signin.password().clear();
     signin.password().sendKeys(mp.get("password"));
     signin.confirmPassword().clear();
     signin.confirmPassword().sendKeys(mp.get("confirmpassword"));
     loginPage.clickSignInButton();
   }
 }