コード例 #1
0
  public CroppingToolPageObject clickOnImage(int imageIndex) {
    WebElement image = images.get(imageIndex);

    wait.forElementVisible(image);
    image.click();

    return new CroppingToolPageObject(driver);
  }
コード例 #2
0
 public CuratedContentPageObject clickOnLoadMoreButton() {
   wait.forElementVisible(loadMoreButton);
   jsActions.scrollToElement(loadMoreButton);
   loadMoreButton.click();
   return this;
 }
コード例 #3
0
 public void type(String searchPhrase) {
   wait.forElementVisible(searchInput);
   searchInput.sendKeys(searchPhrase);
 }
コード例 #4
0
 public CuratedContentPageObject clickOnCuratedContentElementByIndex(int elementNumber) {
   wait.forElementVisible(curatedContentItems.get(elementNumber));
   jsActions.scrollToElement(curatedContentItems.get(elementNumber));
   curatedContentItems.get(elementNumber).click();
   return this;
 }
コード例 #5
0
 public CuratedContentPageObject clickOnMainPageLink() {
   wait.forElementVisible(linkToMainPage);
   jsActions.scrollToElement(linkToMainPage);
   linkToMainPage.click();
   return this;
 }
コード例 #6
0
 public String getTitle() {
   wait.forElementVisible(sectionTitle);
   return sectionTitle.getText();
 }
コード例 #7
0
 public int getCuratedContentItemsNumber() {
   wait.forElementVisible(curatedContentItems.get(0));
   return curatedContentItems.size();
 }
コード例 #8
0
 public CuratedContentPageObject isLoadMoreButtonVisible() {
   wait.forElementVisible(loadMoreButton);
   PageObjectLogging.logInfo(Labels.LOAD_MORE_BUTTON.name + " " + MercuryMessages.VISIBLE_MSG);
   return this;
 }
コード例 #9
0
 public CuratedContentPageObject isCuratedContentItemVisibleByIndex(int elementNumber) {
   wait.forElementVisible(curatedContentItems.get(elementNumber));
   PageObjectLogging.logInfo(Labels.SECTION_ITEM.name + " " + MercuryMessages.VISIBLE_MSG);
   return this;
 }
コード例 #10
0
 public CuratedContentPageObject isSectionVisible() {
   wait.forElementVisible(sectionContainer);
   PageObjectLogging.logInfo(Labels.SECTION.name + " " + MercuryMessages.VISIBLE_MSG);
   return this;
 }
コード例 #11
0
 public CuratedContentPageObject isLinkToMainPageVisible() {
   wait.forElementVisible(linkToMainPage);
   PageObjectLogging.logInfo(Labels.LINK_TO_MAIN_PAGE.name + " " + MercuryMessages.VISIBLE_MSG);
   return this;
 }
コード例 #12
0
 public CuratedContentPageObject isTitleVisible() {
   wait.forElementVisible(sectionTitle);
   PageObjectLogging.logInfo(Labels.SECTION_TITLE.name + " " + MercuryMessages.VISIBLE_MSG);
   return this;
 }