public ReportsPage GoToReportsPage() { LogHelpers.Write(string.Format("Access top menu.")); NavigationButton.ClickAndWaitForAjax(); Waits.GetWait().Until(drv => ReportsLink); LogHelpers.Write(string.Format("Click \"Reports\" link in top menu.")); ReportsLink.ClickAndWaitForAjax(); return(NewPage <ReportsPage>()); }
public TopMenu GoToProjectMenu() { LogHelpers.Write(string.Format("Access top Menu.")); NavigationButton.ClickAndWaitForAjax(); Waits.GetWait().Until(drv => ProjectLink); LogHelpers.Write(string.Format("Click \"Project\" link in top Menu.")); ProjectLink.ClickAndWaitForAjax(); Waits.GetWait().Until(drv => ReviewMenuButton); return(this); }
private void WaitForReportGeneration() { Waits.GetWait().Until(drv => { try { return(ProgressLabel == null); } catch (NotFoundException) { return(true); } }); }
public AssetsPurchasesPage GoToAssetsPurchasePage() { LogHelpers.Write(string.Format("Access top menu.")); NavigationButton.ClickAndWaitForAjax(); Waits.GetWait().Until(drv => AssetsLink); LogHelpers.Write(string.Format("Click \"Assets\" link in top menu.")); AssetsLink.ClickAndWaitForAjax(); Waits.GetWait().Until(drv => PurchasesButton); LogHelpers.Write(string.Format("Click \"Purchases\" button in sub menu.")); PurchasesButton.ClickAndWaitForAjax(); return(NewPage <AssetsPurchasesPage>()); }
public ProjectSettingsPage LoadProject() { Waits.GetWait().Until(drv => ProjectSettingsLabel); return(this); }