コード例 #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
 public String getReportedOther() {
   return Driver.findVisible(By.xpath(String.format(RIGHT_OWNERSHIP_TABLE_XPATH, REPORTED_OTHER)))
       .getText()
       .trim();
 }
コード例 #4
0
 public String getReportedEquityAssets() {
   return Driver.findVisible(
           By.xpath(String.format(RIGHT_OWNERSHIP_TABLE_XPATH, REPORTED_EQUITY_ASSETS)))
       .getText()
       .trim();
 }
コード例 #5
0
 public String getReportedFixedIncomeAssets() {
   return Driver.findVisible(
           By.xpath(String.format(RIGHT_OWNERSHIP_TABLE_XPATH, REPORTED_FIXED_INCOME_ASSETS)))
       .getText()
       .trim();
 }
コード例 #6
0
 public String getAddress() {
   return Driver.findVisible(By.xpath(ADDRESS_XPATH)).getText().trim();
 }
コード例 #7
0
 public String getDerivativeStrategies() {
   return Driver.findVisible(
           By.xpath(String.format(LEFT_OWNERSHIP_TABLE_XPATH, DERIVATIVE_STRATEGIES)))
       .getText()
       .trim();
 }
コード例 #8
0
 public String getPrimaryEquityStyle() {
   return Driver.findVisible(
           By.xpath(String.format(LEFT_OWNERSHIP_TABLE_XPATH, PRIMARY_EQUITY_STYLE)))
       .getText()
       .trim();
 }
コード例 #9
0
 public String getDominantOrientation() {
   return Driver.findVisible(
           By.xpath(String.format(LEFT_OWNERSHIP_TABLE_XPATH, DOMINANT_ORIENTATION)))
       .getText()
       .trim();
 }
コード例 #10
0
 public String getFax() {
   return Driver.findVisible(By.xpath(FAX_XPATH)).getText().trim();
 }
コード例 #11
0
 public String getInstitutionType() {
   return Driver.findVisible(By.xpath(String.format(LEFT_OWNERSHIP_TABLE_XPATH, INSTITUTION_TYPE)))
       .getText()
       .trim();
 }
コード例 #12
0
 public String getPhone() {
   return Driver.findVisible(By.xpath(PHONE_XPATH)).getText().trim();
 }
コード例 #13
0
 public String getAssetClass() {
   return Driver.findVisible(By.xpath(ASSET_CLASS_XPATH)).getText().trim();
 }
コード例 #14
0
 public String getWebsite() {
   return Driver.findVisible(By.xpath(WEBSITE_XPATH)).getText().trim();
 }
コード例 #15
0
 private void setupOwnershipSummaryTable() {
   SenchaWebElement ownershipSummaryContainer = Driver.findIfExists(OWNERSHIP_SUMMARY_LOCATOR);
   Assert.assertNotNull(
       ownershipSummaryContainer, getScreenName() + ": ownership summary table is missing.");
   defaultTickerHoldings.setContainer(ownershipSummaryContainer);
 }
コード例 #16
0
 public String getFiPortfolioTurnover() {
   return Driver.findVisible(
           By.xpath(String.format(LEFT_OWNERSHIP_TABLE_XPATH, FI_PORTFOLIO_TURNOVER)))
       .getText()
       .trim();
 }
コード例 #17
0
 private void setupTopHoldingsTable() {
   SenchaWebElement topHoldingsContainer = Driver.findIfExists(TOP_HOLDINGS_LOCATOR);
   Assert.assertNotNull(
       topHoldingsContainer, getScreenName() + ": top holdings table is missing.");
   defaultTickerHoldings.setContainer(topHoldingsContainer);
 }
コード例 #18
0
 public String getLocation() {
   return Driver.findVisible(By.xpath(LOCATION_XPATH)).getText().trim();
 }