コード例 #1
0
 private void setupTopBuySellTable() {
   SenchaWebElement topBuySellTableContainer = topBuySellCarousel.getActiveCarouselItem();
   Assert.assertNotNull(
       topBuySellTableContainer,
       getScreenName() + ": Top Buy / Sell table container is not found.");
   topBuySellTable.setContainer(topBuySellCarousel.getActiveCarouselItem());
 }
コード例 #2
0
 protected boolean setupChartCarousel() {
   selectEquityTab();
   if (Driver.findIfExists(By.xpath(CHARTS_CAROUSEL_XPATH)) != null) {
     chartsEquityCarousel.setContainerXpath(CHARTS_CAROUSEL_XPATH);
     chartsEquityCarousel.setAnimationTimeout(2);
     return true;
   } else {
     Logger.logError("Cannot initialize Chart table: no chart carousel found.");
     return false;
   }
 }
コード例 #3
0
 public BaseOwnershipProfileTab verifyEquityOwnershipChart() {
   if (setupChartCarousel()) {
     chartsEquityCarousel.goToPage(1);
     verifyDiagram("Equity Ownership");
   }
   return this;
 }
コード例 #4
0
 public BaseOwnershipProfileTab verifyPositionHistoryChart() {
   if (setupChartCarousel()) {
     chartsEquityCarousel.goToPage(0);
     verifyDiagram("Position History");
   }
   return this;
 }
コード例 #5
0
 public BaseOwnershipProfileTab selectTopBuySellTable(String expectedHeader) {
   expectedHeader = expectedHeader + " (" + currency + ")";
   String currentHeader = getActiveTopBuySellTableHeader();
   if (!currentHeader.equalsIgnoreCase(expectedHeader)) {
     topBuySellCarousel.goToPage(0);
     while (!getActiveTopBuySellTableHeader().equalsIgnoreCase(expectedHeader)) {
       if (topBuySellCarousel.hasNext()) {
         topBuySellCarousel.goForward();
       } else {
         throw new Error(
             "Could not reach '"
                 + expectedHeader
                 + "' table using Carousel: no such table found.");
       }
     }
   }
   topBuySellTable.setContainer(topBuySellCarousel.getActiveCarouselItem());
   return this;
 }
コード例 #6
0
 protected void setupTopBuySellCarousel() {
   topBuySellCarousel.setContainerXpath(TOP_BUY_SELL_CAROUSEL_XPATH);
   topBuySellCarousel.setAnimationTimeout(2);
 }
コード例 #7
0
 protected String getActiveTopBuySellTableHeader() {
   SenchaWebElement container = topBuySellCarousel.getActiveCarouselItem();
   topBuySellTable.setContainer(container);
   return topBuySellTable.getHeader().toUpperCase();
 }