private void setupTopBuySellTable() {
   SenchaWebElement topBuySellTableContainer = topBuySellCarousel.getActiveCarouselItem();
   Assert.assertNotNull(
       topBuySellTableContainer,
       getScreenName() + ": Top Buy / Sell table container is not found.");
   topBuySellTable.setContainer(topBuySellCarousel.getActiveCarouselItem());
 }
 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;
   }
 }
 public BaseOwnershipProfileTab verifyEquityOwnershipChart() {
   if (setupChartCarousel()) {
     chartsEquityCarousel.goToPage(1);
     verifyDiagram("Equity Ownership");
   }
   return this;
 }
 public BaseOwnershipProfileTab verifyPositionHistoryChart() {
   if (setupChartCarousel()) {
     chartsEquityCarousel.goToPage(0);
     verifyDiagram("Position History");
   }
   return this;
 }
 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;
 }
 protected void setupTopBuySellCarousel() {
   topBuySellCarousel.setContainerXpath(TOP_BUY_SELL_CAROUSEL_XPATH);
   topBuySellCarousel.setAnimationTimeout(2);
 }
 protected String getActiveTopBuySellTableHeader() {
   SenchaWebElement container = topBuySellCarousel.getActiveCarouselItem();
   topBuySellTable.setContainer(container);
   return topBuySellTable.getHeader().toUpperCase();
 }