private void setupTopBuySellTable() { SenchaWebElement topBuySellTableContainer = topBuySellCarousel.getActiveCarouselItem(); Assert.assertNotNull( topBuySellTableContainer, getScreenName() + ": Top Buy / Sell table container is not found."); topBuySellTable.setContainer(topBuySellCarousel.getActiveCarouselItem()); }
private void setupDefaultTickerTable() { SenchaWebElement defaultTickerCurrentHoldingsContainer = Driver.findIfExists(CURRENT_HOLDINGS_PUBLIC_SELECTOR); Assert.assertNotNull( defaultTickerCurrentHoldingsContainer, getScreenName() + ": " + System.getProperty("test.defaultTicker") + " current holdings table is missing."); defaultTickerHoldings.setContainer(defaultTickerCurrentHoldingsContainer); }
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; }
private void setupTopHoldingsTable() { SenchaWebElement topHoldingsContainer = Driver.findIfExists(TOP_HOLDINGS_LOCATOR); Assert.assertNotNull( topHoldingsContainer, getScreenName() + ": top holdings table is missing."); defaultTickerHoldings.setContainer(topHoldingsContainer); }
private void setupOwnershipSummaryTable() { SenchaWebElement ownershipSummaryContainer = Driver.findIfExists(OWNERSHIP_SUMMARY_LOCATOR); Assert.assertNotNull( ownershipSummaryContainer, getScreenName() + ": ownership summary table is missing."); defaultTickerHoldings.setContainer(ownershipSummaryContainer); }
protected String getActiveTopBuySellTableHeader() { SenchaWebElement container = topBuySellCarousel.getActiveCarouselItem(); topBuySellTable.setContainer(container); return topBuySellTable.getHeader().toUpperCase(); }