コード例 #1
0
 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);
 }
コード例 #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
 private void setupTopHoldingsTable() {
   SenchaWebElement topHoldingsContainer = Driver.findIfExists(TOP_HOLDINGS_LOCATOR);
   Assert.assertNotNull(
       topHoldingsContainer, getScreenName() + ": top holdings table is missing.");
   defaultTickerHoldings.setContainer(topHoldingsContainer);
 }
コード例 #4
0
 private void setupOwnershipSummaryTable() {
   SenchaWebElement ownershipSummaryContainer = Driver.findIfExists(OWNERSHIP_SUMMARY_LOCATOR);
   Assert.assertNotNull(
       ownershipSummaryContainer, getScreenName() + ": ownership summary table is missing.");
   defaultTickerHoldings.setContainer(ownershipSummaryContainer);
 }