Esempio n. 1
0
  public BuyerContactsPage clickOnDeleteSelectedButtonAndConfirmDeletion() {

    deleteselected.click();

    common.pause(1);
    common.acceptAlert();

    return new BuyerContactsPage(driver);
  }
Esempio n. 2
0
  public boolean areContactsPageElementsPresent() {

    // common.waitForElement(By.xpath("//a[text()='Cancel']"));
    boolean isCompanyNameIsDisplayd = common.isElementDisplayed(comapany);
    boolean isContactsHeaderTextDisplayeed = common.isElementDisplayed(contactsheadertext);
    boolean isAddContactButtonDisplayed = common.isElementDisplayed(addcontact);
    boolean isDeleteSelectedButtonDisplayed = common.isElementDisplayed(deleteselected);
    boolean isEditButtonDisplayed = common.isElementDisplayed(edit);
    // boolean isSaveButtonDisplayed = common.isElementDisplayed(save);
    // boolean isCancelLinkDisplayed = common.isElementDisplayed(cancel);

    return isCompanyNameIsDisplayd
        && isContactsHeaderTextDisplayeed
        && isAddContactButtonDisplayed
        && isAddContactButtonDisplayed
        && isDeleteSelectedButtonDisplayed
        && isEditButtonDisplayed;
    // && isSaveButtonDisplayed && isCancelLinkDisplayed;
  }