public string GetOrganizationUnitNo() { LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name); var organizationUnitValue = this.GetOrganizationUnit(); var leftBracket = organizationUnitValue.IndexOf("(", StringComparison.Ordinal) + 1; var rightBracket = organizationUnitValue.LastIndexOf(")", StringComparison.Ordinal); return(organizationUnitValue.Substring(leftBracket, rightBracket - leftBracket)); }
private bool ValidateSortColumnLabel(int columnNumber) { LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name); var sortColumnLabel = this.SortColumnLabels.GetText(columnNumber); var reportDate = this.GetCurrentReportDate(); if (reportDate.Contains(sortColumnLabel)) { return(true); } switch (sortColumnLabel) { case "CM": case "Overall Trg Achv%": case "Gross Sales in mCHF": return(true); default: return(false); } }
internal bool ValidateSortedColumn(int columnNumber) { LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name, columnNumber); return(this.SortColumnSigns.GetText(columnNumber) == "u"); }
public string GetTimeView() { LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name); return(this.SingleTimeView.GetValue()); }
public string GetCurrency() { LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name); return(this.CurrencyValue.GetText()); }
public string GetBusinessFunction() { LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name); return(this.BusinessFunctionValue.GetText()); }
public string GetOrganizationUnit() { LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name); return(this.OrganizationUnitValue.GetText()); }
private bool ExpandButtonActive() { LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name); return(this.ExpandNextLevelLink.IsLinkActive()); }
private bool CollapseAllActive() { LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name); return(this.CollapseAllLevelsLink.IsLinkActive()); }
public int GetReportRowElementsCount() { LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name); return(this.ReportRowElements.Count()); }