public BaseOwnershipProfileTab verifyTickerInCurrentHoldingsTableEntries() {
   defaultTickerHoldings.verifyKeyPresent(
       "Current Position in " + defaultTicker + " - Value / Change");
   defaultTickerHoldings.verifyKeyPresent(
       "Current Position in " + defaultTicker + " - Shares / Change");
   return this;
 }
 public BaseOwnershipProfileTab verifyCurrencyInOwnershipSummaryTable() {
   ownershipSummary.verifyKeyPresent("Portfolio Value(" + currency + ")");
   ownershipSummary.verifyKeyPresent("New Positions(" + currency + ")");
   ownershipSummary.verifyKeyPresent("Increased Positions(" + currency + ")");
   ownershipSummary.verifyKeyPresent("Decreased Positions(" + currency + ")");
   ownershipSummary.verifyKeyPresent("Unchanged Positions(" + currency + ")");
   return this;
 }
 private void setupTopBuySellTable() {
   SenchaWebElement topBuySellTableContainer = topBuySellCarousel.getActiveCarouselItem();
   Assert.assertNotNull(
       topBuySellTableContainer,
       getScreenName() + ": Top Buy / Sell table container is not found.");
   topBuySellTable.setContainer(topBuySellCarousel.getActiveCarouselItem());
 }
 public String getFirstSecurityNameInTopBuysAndSellsTable() {
   if (getSelectedTab().equals(EQ)) {
     throw new Error(
         "Security names are listed in Top Buy/Sell table "
             + "on Fixed Income sub-tab only. Equity sub-tab contains Company names.");
   }
   return topBuySellTable.getKey(1);
 }
 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 verifyCurrencyInTopHoldingsHeader() {
    String header = "Top Holdings (" + currency + ")";
    String currentlyActiveTab = getSelectedTab();

    selectEquityTab();
    topHoldings.verifyHeader(header);

    selectFixedIncomeTab();
    topHoldings.verifyHeader(header);

    switch (currentlyActiveTab) {
      case EQ:
        selectEquityTab();
        break;
      case FI:
        selectFixedIncomeTab();
        break;
      default:
        throw new Error("Unknown Ownership tab: '" + currentlyActiveTab + "'.");
    }
    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;
 }
 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();
 }
 public BaseOwnershipProfileTab clickFirstSecurityInTopBuysAndSellsTable() {
   topBuySellTable.clickKeyCell(1);
   return this;
 }
 public BaseOwnershipProfileTab verifyTickerInCurrentHoldingsTableHeader() {
   String tableHeader = defaultTicker + " Holdings";
   defaultTickerHoldings.verifyHeader(tableHeader);
   return this;
 }
 public FiSecurityFullProfile openFixedIncomeProfileFromTopHoldingsTable(String fixedIncomeName) {
   selectFixedIncomeTab();
   topHoldings.clickKeyCell(fixedIncomeName);
   return new FiSecurityFullProfile();
 }
 public String getFirstFiInTopHoldingsTable() {
   selectFixedIncomeTab();
   return topHoldings.getKey(1);
 }
 public BaseOwnershipProfileTab clickFirstSecurityInTopHoldingsTable() {
   topHoldings.clickKeyCell(1);
   return this;
 }
 public EqSecurityFullProfile openEquityProfileFromTopHoldingsTable(String equityName) {
   selectEquityTab();
   topHoldings.clickKeyCell(equityName);
   return new EqSecurityFullProfile();
 }
 private void setupTopHoldingsTable() {
   SenchaWebElement topHoldingsContainer = Driver.findIfExists(TOP_HOLDINGS_LOCATOR);
   Assert.assertNotNull(
       topHoldingsContainer, getScreenName() + ": top holdings table is missing.");
   defaultTickerHoldings.setContainer(topHoldingsContainer);
 }
 public BaseOwnershipProfileTab verifyCurrencyInTopBuySellTableHeader(String header) {
   selectTopBuySellTable(header);
   topBuySellTable.verifyHeader(header + " (" + currency + ")");
   return this;
 }
 public String getFirstEquityInTopHoldingsTable() {
   selectEquityTab();
   return topHoldings.getKey(1);
 }