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; }