Example #1
0
  public List<String> getProjects() {
    openDialog();

    String href = getTriggerElement().getAttribute("href");
    int triggerTargetStart = href.indexOf("#");

    String dialogId = "inline-dialog-" + href.substring(triggerTargetStart + 1);

    PageElement dialog = elementFinder.find(By.id(dialogId));
    assertTrue("The dialog did not appear to open.", dialog.isPresent());

    List<PageElement> elements = dialog.findAll(By.tagName("li"));
    List<String> projects = new ArrayList<String>(elements.size());
    for (PageElement element : elements) {
      projects.add(element.getText());
    }

    closeDialog();

    return projects;
  }
 public String getEmailLabel() {
   return emailLabel.getText().trim();
 }
 public String getFullNameLabel() {
   return fullNameLabel.getText().trim();
 }
 public String getFormCaption() {
   return formCaption.getText().trim();
 }