public void OpenCommonReportURL(CommonReportType type, int eventId, string eventSessionId) { if (type == CommonReportType.CreditCardTransaction) { throw new NotImplementedException("CCTransactionsReport URL format not implemented!"); } UIUtil.DefaultProvider.OpenUrl(ConfigReader.DefaultProvider.AccountConfiguration.BaseUrl + (string.Format(this.commonReportURLFormats[type], eventSessionId, eventId))); }
public void OpenCommonReport(CommonReportType type) { switch (type) { case CommonReportType.RegistrantList: case CommonReportType.AgendaSelections: case CommonReportType.Transaction: case CommonReportType.CreditCardTransaction: case CommonReportType.TransactionFees: case CommonReportType.EventSnapshot: case CommonReportType.RegistrationWaitlist: case CommonReportType.Resource: case CommonReportType.Travel: case CommonReportType.Lodging: case CommonReportType.ConfirmedRegistrants: UIUtil.DefaultProvider.WaitForDisplayAndClick(this.commonReportLinkLocators[type], LocateBy.Id); Utility.ThreadSleep(3); SelectReportPopupWindow(); break; case CommonReportType.RoomingList: UIUtil.DefaultProvider.WaitForDisplayAndClick(this.commonReportLinkLocators[type], LocateBy.Id); Utility.ThreadSleep(3); this.ByPassRoomingListReportFilter(); SelectReportPopupWindow(); break; case CommonReportType.GroupDiscount: throw new Exception("No direct link for GroupDiscount report!"); default: break; } UIUtil.DefaultProvider.WaitForPageToLoad(); }