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