/// <summary> /// Navigates page to specific location /// </summary> /// <param name="Driver">Initialized RemoteWebDriver instance</param> /// <param name="location">Location to navigate</param> public static void NavigateTo(RemoteWebDriver driver, String location) { Selenide.NavigateTo(driver, location); test.Log(LogStatus.Pass, "Navigated to" + location); System.Threading.Thread.Sleep(1000); }
public void testTC_24_VerifyUserSearchResultsForUsersFilterAndInventoryTab(Dictionary <String, String> TestData) { //Login to Application Common.NavigateTo(driver, Util.EnvironmentSettings["Server"]); Common.Login(driver, TestData["InternalUserName"], TestData["InternalPassword"]); Dashboard.VerifyPage(driver); //This step is to Click on Super Search and Select Users icon Dashboard.ClickOnClosePopUp(driver); Dashboard.ClickSuperSearchIcon(driver); Dashboard.ClickAnIconInSuperSearch(driver, "users"); //This step is to Verify Super Search bar and Icon selected in Super Search Dashboard.VerifySuperSearchBar(driver); Dashboard.VerifySuperSearchSelectedFilterIsActive(driver, "users"); //This step is to Enter User in Super Search and Verify the result string[] results = { "Name", "Email", "Client Name", "Client ID" }; Dashboard.EnterTextInSuperSearch(driver, TestData["User"]); Dashboard.VerifySuperSearchLocationResults(driver, results); //This step is to Click on Inventory tab,Click on Open Inventory button and Verify Inventory page user Dashboard.ClickTabInSuperSearch(driver, "Inventory"); Dashboard.ClickOpenInventoryButton(driver); Selenide.SwitchtoNewWindow(driver); Dashboard.VerifyInventoryPageUser(driver, TestData["User"]); }
public static void VerifyAllFooterLinks(RemoteWebDriver driver) { //(new Act("All footer links should display")); Selenide.ScrollToElement(driver, Util.GetLocator("footerlnk_pro")); string[] footerlinks = { "Pro", "Web Apps", "Mobile Apps", "Products", "Business Solutions", "API & Developer Solutions", "About", "Resources & Tools", "Blog", "Community", "Contact", "Connect" }; int leanth = footerlinks.Length; for (int i = 0; i < leanth; i++) { if (footerlinks[i] == "Connect") { Selenide.WaitForElementVisible(driver, Util.GetLocator("footerlnk_pro")); Selenide.Query.isElementVisible(driver, Locator.Get(LocatorType.XPath, "//li[@id='footer-top-links']/descendant::a[contains(text(),'" + footerlinks[i] + "')]")); } else { Selenide.WaitForElementVisible(driver, Util.GetLocator("footerlnk_pro")); Selenide.Query.isElementVisible(driver, Locator.Get(LocatorType.XPath, "//li[@id='footer-top-links']/descendant::a[text()='" + footerlinks[i] + "']")); } } //last bottom links string[] bottomlinks = { "wolfram.com", "Wolfram Language", "Wolfram for Education", "Wolfram Demonstrations", "Mathematica", "MathWorld" }; int bleanth = bottomlinks.Length; for (int i = 0; i < bleanth; i++) { Selenide.Query.isElementVisible(driver, Locator.Get(LocatorType.XPath, "//a[text()='" + bottomlinks[i] + "']")); } test.Log(LogStatus.Pass, "Verified all footer links"); }
/// <summary> /// ClickCreateNewAccount method click on create new account button /// </summary> /// <param name="driver"></param> /// <param name="reporter"></param> public static void ClickCreateNewAccount(RemoteWebDriver driver, Iteration reporter) { reporter.Add(new Act("Click on Create New Account button")); Selenide.Click(driver, Util.GetLocator("createaccount_btn")); // *** Create New account redirects to AccountRegister Page *** // }
public static void ValidateRadius(RemoteWebDriver driver) { //Verify that the radius of the sun is 432300 miles. Selenide.WaitForElementVisible(driver, Util.GetLocator("Radiussun432300")); Selenide.Query.isElementVisible(driver, Util.GetLocator("Radiussun432300")); test.Log(LogStatus.Pass, "The radius of the sun is 432300 miles displayed"); }
public static void ValidateLifeTimeSun(RemoteWebDriver driver) { // //Validate the lifetime of the sun Selenide.WaitForElementVisible(driver, Util.GetLocator("Lifetimeofsun")); Selenide.Query.isElementVisible(driver, Util.GetLocator("Lifetimeofsun")); test.Log(LogStatus.Pass, "Verified the lifetime of the sun is 9.8 billion years"); }
public void testTC_26_VerifyEditUserInfoButtonAndTicketLinkInTicketsTab(Dictionary <String, String> TestData) { //Login to Application"; Common.NavigateTo(driver, Util.EnvironmentSettings["Server"]); Common.Login(driver, TestData["InternalUserName"], TestData["InternalPassword"]); Dashboard.VerifyPage(driver); //This step is to Click on Super Search and Select Users icon Dashboard.ClickOnClosePopUp(driver); Dashboard.ClickSuperSearchIcon(driver); Dashboard.ClickAnIconInSuperSearch(driver, "users"); //This step is to Verify Super Search bar and Icon selected in Super Search Dashboard.VerifySuperSearchBar(driver); Dashboard.VerifySuperSearchSelectedFilterIsActive(driver, "users"); //This step is to Enter User in Super Search and Verify the result string[] results = { "Name", "Email", "Client Name", "Client ID" }; Dashboard.EnterTextInSuperSearch(driver, TestData["User"]); Dashboard.VerifySuperSearchLocationResults(driver, results); Dashboard.SelectSearchResults(driver, "Client ID", "0"); //This step is to Click on Tickets tab, Click Edit User Info button and Verify Users page Dashboard.ClickTabInSuperSearch(driver, "Tickets"); Dashboard.ClickEditUserInfoButton(driver); Selenide.SwitchtoNewWindow(driver); UserPage.VerifyUsersPage(driver); Selenide.SwithToFirstWindow(driver); //This step is to Click on Tickets tab, Click a Ticket link and Verify Tickets page Dashboard.ClickTabInSuperSearch(driver, "Tickets"); Dashboard.ClickTicketLinkInSuperSearchTicketsTab(driver); Selenide.SwithToLastWindow(driver); HelpDesk.VerifyTicketingPage(driver); }
/// <summary> /// CloseStoreLocatorPopupWindow clicks on close icon of doctors entry popup /// </summary> /// <param name="Driver">Initialized RemoteWebDriver instance</param> /// <param name="reporter"></param> public static void CloseStoreLocatorPopupWindow(RemoteWebDriver driver, Iteration reporter, string resultsPath) { try { reporter.Add(new Act("Close Store Locator Popup Window")); //Selenide.SwitchToDefaultContent(driver); //Selenide.SwitchToFrame(driver, Locator.Get(LocatorType.ID, "dlg_ifrm_search")); Selenide.WaitForElementNotVisible(driver, Locator.Get(LocatorType.ClassName, "dlg_spinner")); if (Selenide.IsElementExists(driver, Locator.Get(LocatorType.ID, "createmsgdiv"))) { CommonPage.AcceptErrorMessageIfPresent(driver, reporter, resultsPath); } //if (Selenide.IsElementExists(driver, Util.GetLocator("Cancel_btn"))) //{ // Selenide.Click(driver, Util.GetLocator("Cancel_btn")); //} if (Selenide.IsElementExists(driver, Util.GetLocator("StoreInfoCloseBtn_win"))) { Selenide.Click(driver, Util.GetLocator("StoreInfoCloseBtn_win")); } //CommonPage.WaitUntilSpinnerDisappears(driver); //CommonPage.AcceptOrDissmissAlertIfPresent(driver, reporter); //CommonPage.AcceptErrorMessageIfPresent(driver); Selenide.SwitchToDefaultContent(driver); } catch (Exception ex) { CommonPage.AcceptOrDissmissAlertIfPresent(driver, reporter); CommonPage.AcceptErrorMessageIfPresent(driver, reporter, resultsPath); } }
public void ClickOnResults() { if (Selenide.IsElementExists(Driver, Util.GetLocator("ResultsTable_frm"))) { Selenide.SwitchToFrame(Driver, Util.GetLocator("ResultsTable_frm")); if (Selenide.IsElementExists(Driver, Util.GetLocator("ResultsTable1_tbl"))) { Step = "Click on any store number"; StoreSchedulerPage.ClickOnAnyStoreNumber(Driver, Reporter, resultsPath); } else if (Selenide.IsElementExists(Driver, Util.GetLocator("ResultsTable2_tbl"))) { Step = "Click on any store number"; StoreSchedulerPage.ClickOnAnyStoreNumber(Driver, Reporter, resultsPath); } if (Selenide.IsElementExists(Driver, Util.GetLocator("StoreInfoPopUp_win"))) { Step = "Close store popup window"; StoreSchedulerPage.CloseStoreLocatorPopupWindow(Driver, Reporter, resultsPath); } else { Step = "No Results Found"; Selenide.SwitchToDefaultContent(Driver); } } }
/// <summary> /// CloseCostCenterPopUp method closes Patient Information Poup in Scheduler Page /// </summary> /// <param name="driver"></param> /// <param name="reporter"></param> public static void CloseCostCenterPopUp(RemoteWebDriver driver, Iteration reporter) { reporter.Add(new Act("Close Patient Information Poup in Scheduler Page")); Selenide.SwitchToDefaultContent(driver); Selenide.JS.Click(driver, Locator.Get(LocatorType.XPath, string.Format(@"//img[@title='Close']"))); }
/// <summary> /// TypeAccountingDeatls enters details in Accounting Page /// </summary> /// <param name="driver"></param> /// <param name="reporter"></param> /// <param name="costcenternumber">First Name</param> public static void TypeAccountingDeatls(RemoteWebDriver driver, Iteration reporter, string costcenternumber) { reporter.Add(new Act("Entered Cost center text")); Selenide.SwitchToFrame(driver, Locator.Get(LocatorType.ID, "iFrameSiteContents")); Selenide.SetText(driver, Util.GetLocator("CostCenter_txt"), Selenide.ControlType.Textbox, costcenternumber); }
protected override void ExecuteTestCase() { Reporter.Chapter.Title = "Verifying the functaionality of External Application Module"; Step = "Login into Web Portal Application"; CommonPage.NavigateTo(Driver, Reporter, Util.EnvironmentSettings["Server"]); CommonPage.Login(Driver, Reporter, UserName, Password); //Select Application from the menu popup. Step = "Select " + TestData["APPLICATIONNAME"] + " application from the menu popup."; CommonPage.SelectApplication(Driver, Reporter, TestData["APPLICATIONNAME"]); //Assert page title of the application. Step = "Assert Page Title of " + TestData["PAGETITLE"] + " the application"; CommonPage.AssertPageTitle(Driver, Reporter, TestData["PAGETITLE"]); //Click submenu. for (int i = 0; i < menulist.Count; i++) { try { Step = (i + 1) + ":" + " Click>>" + submenulist[i] + " in " + menulist[i] + " menu "; //AmericaBestHomePage.ClickOnMenu(Driver, Reporter, menulist[i]); CommonPage.ClickSubMenuLink(Driver, Reporter, menulist[i], submenulist[i], i, resultsPath); while (isTrueBool) { if (AmericaBestHomePage.IsMenuAnExternalApplication(Driver, Reporter, submenulist[i])) { //Step = "Click " + externalapplicationmenulist[i] + " in " + submenulist[i] + " Menu"; //AmericaBestHomePage.ClickExternalApplicationMenu(Driver, Reporter, externalapplicationmenulist[i],i); Step = "Click " + externalapplicationsubmenulist[i] + " in " + externalapplicationmenulist[i] + " External Application Menu"; AmericaBestHomePage.ClickExternalApplicationSubMenu(Driver, Reporter, externalapplicationmenulist[i], externalapplicationsubmenulist[i], i, resultsPath); } Step = "Enter Store Number and Click on Search Button"; StoreSchedulerPage.TypeStoreNumber(Driver, Reporter, TestData["STORENUMBER"]); StoreSchedulerPage.ClickSearchButton(Driver, Reporter, resultsPath); ClickOnResults(); Selenide.SwitchToDefaultContent(Driver); if (submenulist.Count > i + 1) { isTrueBool = submenulist[i + 1].Equals(submenulist[i]); i++; } else { isTrueBool = false; } } i--; isTrueBool = true; } catch (Exception ex) { CommonPage.AcceptOrDissmissAlertIfPresent(Driver, Reporter); CommonPage.AcceptErrorMessageIfPresent(Driver, Reporter, resultsPath); CommonPage.CloseBrowserNewTab(Driver); } } }
/// <summary> /// VerifyNationalVisionDocumentDownload verfies pdf downloads /// </summary> /// <param name="driver"></param> /// <param name="reporter"></param> public static void VerifyNationalVisionDocumentDownload(RemoteWebDriver driver, Iteration reporter) { reporter.Add(new Act("Click on About National Vision Documents")); Selenide.SwitchToFrame(driver, Util.GetLocator("AboutNationalVisionFrame")); Selenide.JS.Click(driver, Util.GetLocator("NVDocument_lnk")); Selenide.SwitchToWindow(driver); Selenide.VerifyVisible(driver, Util.GetLocator("VerifyAboutNVDocument_lnk")); }
/// <summary> /// ClickCorporateSubLink selects sub links in Corporate /// </summary> /// <param name="driver"></param> /// <param name="reporter"></param> public static void ClickCorporateSubLink(RemoteWebDriver driver, Iteration reporter, string submenuname) { reporter.Add(new Act(String.Format("Click the {0} link under corporate sublink", submenuname))); Selenide.Focus(driver, Locator.Get(LocatorType.XPath, string.Format(@"//table[@class='wide100']/descendant::div[@id='bannernav']/descendant::a[text()='{0}']", submenuname))); Selenide.Click(driver, Locator.Get(LocatorType.XPath, string.Format(@"//table[@class='wide100']/descendant::div[@id='bannernav']/descendant::a[text()='{0}']", submenuname))); }
public static void ClickSigninBtn(RemoteWebDriver driver) { Selenide.BrowserBack(driver); //"Click Sign in from the navigation bar" Selenide.Wait(driver, 5, true); Selenide.ScrollToElement(driver, Util.GetLocator("Signin_btn")); Selenide.Click(driver, Util.GetLocator("Signin_btn")); }
/* VerifyPage method verifying page should redirect to respective page */ public static void VerifyPage(RemoteWebDriver driver) { System.Threading.Thread.Sleep(2000); Selenide.Query.isElementInvisible(driver, Util.GetLocator("ScheduleTourLink")); test.Log(LogStatus.Pass, "knockrentals home pahe displayed"); Common.Takescreenshot(driver); Selenide.Wait(driver, 5, true); }
public static void EnterSearchInput(RemoteWebDriver driver, string searchinput) { //Enter the search input: what is the size of the sun Selenide.ScrollToElement(driver, Util.GetLocator("NavigationBar")); Selenide.SetText(driver, Util.GetLocator("NavigationBar"), Selenide.ControlType.Textbox, searchinput); Selenide.Click(driver, Util.GetLocator("search_Btn")); test.Log(LogStatus.Pass, "Entered the search input text is 'what is the size of the sun'"); }
public static void VerifyCommunicationDocumentDownload(RemoteWebDriver driver, Iteration reporter) { reporter.Add(new Act("Verify Documents link in Communications Page")); Selenide.SwitchToFrame(driver, Util.GetLocator("CommunicationFrame")); reporter.Add(new Act("Click Document")); Selenide.JS.Click(driver, Util.GetLocator("CommunicationDocument_lnk")); Selenide.SwitchToWindow(driver); reporter.Add(new Act("Verify Retail Calender Document")); }
public static void Logout(RemoteWebDriver driver, string username) { ////(new Act("Logoutfrom application")); Selenide.Wait(driver, 4, true); Selenide.Click(driver, Locator.Get(LocatorType.XPath, "//span[text()='" + username + "']")); Selenide.WaitForElementVisible(driver, Util.GetLocator("signOutLink")); Selenide.Click(driver, Util.GetLocator("signOutLink")); test.Log(LogStatus.Pass, "Log out"); }
//Select avalable date public static void SelectAvalabledate(RemoteWebDriver driver) { test.Log(LogStatus.Pass, "Select avalable Date"); Selenide.Click(driver, Util.GetLocator("ScheduleTourLink")); Selenide.Wait(driver, 5, true); Selenide.Query.isElementInvisible(driver, Util.GetLocator("BooktourBtn")); test.Log(LogStatus.Pass, "Schedule tour window displayed"); Common.Takescreenshot(driver); Selenide.Wait(driver, 5, true); }
/// <summary> /// AcceptErrorMessageIfPresent method Closes errormessage if error present /// </summary> /// <param name="driver"></param> /// <param name="reporter"></param> /// <param name="postion">Position of the link </param> /// <returns></returns> public static void AcceptErrorMessageIfPresent(RemoteWebDriver driver) { bool error = Selenide.IsElementExists(driver, Locator.Get(LocatorType.XPath, "//div[@id='createmsgdiv']/descendant::img")); if (error) { Selenide.Click(driver, Locator.Get(LocatorType.XPath, string.Format(@"//div[@id='createmsgdiv']/descendant::img"))); //CommonPage.takeScreenshot(driver, screenshotName, saveTo, reporter); } }
protected override void ExecuteTestCase() { Reporter.Chapter.Title = "Verifying test results without any search parameter"; Step = "Login into Web Portal Application"; CommonPage.NavigateTo(Driver, Reporter, Util.EnvironmentSettings["Server"]); CommonPage.Login(Driver, Reporter, UserName, Password); //Select Application from the menu popup. Step = "Select " + TestData["APPLICATIONNAME"] + " application from the menu popup."; CommonPage.SelectApplication(Driver, Reporter, TestData["APPLICATIONNAME"]); //Assert page title of the application. Step = "Assert Page Title of " + TestData["PAGETITLE"] + " the application"; CommonPage.AssertPageTitle(Driver, Reporter, TestData["PAGETITLE"]); //Click submenu. for (int i = 0; i < menulist.Count; i++) { try { // To click the menu and submenu under it Step = (i + 1) + ":" + " Click the following navigation: " + "<i>" + menulist[i] + "</i>" + ">>" + "<i>" + submenulist[i] + "</i>"; //AmericaBestHomePage.ClickOnMenu(Driver, Reporter, menulist[i]); CommonPage.ClickSubMenuLink(Driver, Reporter, menulist[i], submenulist[i], i, resultsPath); while (isTrueBool) { if (AmericaBestHomePage.IsMenuAnExternalApplication(Driver, Reporter, submenulist[i])) { //Step = "Click " + externalapplicationmenulist[i] + " in " + submenulist[i] + " Menu"; //AmericaBestHomePage.ClickExternalApplicationMenu(Driver, Reporter, externalapplicationmenulist[i],i); Step = (i + 1) + ":" + " Click the following external application menu " + "<b>" + externalapplicationmenulist[i] + "</b>" + ">>" + "<b>" + externalapplicationsubmenulist[i] + "</b>"; AmericaBestHomePage.ClickExternalApplicationSubMenu(Driver, Reporter, externalapplicationmenulist[i], externalapplicationsubmenulist[i], i, resultsPath); } if (i + 1 < submenulist.Count) { isTrueBool = submenulist[i + 1].Equals(submenulist[i]); } StoreSchedulerPage.ClickSearchButton(Driver, Reporter, resultsPath); ClickOnResults(); Selenide.SwitchToDefaultContent(Driver); i++; } i--; isTrueBool = true; } catch (Exception ex) { CommonPage.AcceptOrDissmissAlertIfPresent(Driver, Reporter); CommonPage.AcceptErrorMessageIfPresent(Driver, Reporter, resultsPath); CommonPage.CloseBrowserNewTab(Driver); } } }
/// <summary> /// AcceptOrDissmissAlertIfPresent method Accepts/dismiss alert if present. /// </summary> /// <param name="driver"></param> /// <param name="reporter"></param> public static void AcceptOrDissmissAlertIfPresent(RemoteWebDriver driver, Iteration reporter) { //reporter.Add(new Act(string.Format(@"Accepts if alert present"))); if (Selenide.IsAlertPresent(driver)) { Selenide.AcceptorDismissAlert(driver); } else { } }
public static void HandleSync(RemoteWebDriver driver, Locator ElementToNoLongerVisible) { Selenide.Wait(driver, 1, true); try { Selenide.WaitforElementDisappear(driver, ElementToNoLongerVisible); } catch (Exception e) { //Selenide.Wait(driver,Common.HandleSync(driver), true); } }
/// <summary> /// VerifyMessageInavalidDetails method verifies the message when we enter the invalid details /// </summary> /// <param name="driver"></param> /// <param name="reporter"></param> /// <param name="textToAssert">Expected message</param> public static void VerifyMessageInavalidDetails(RemoteWebDriver driver, Iteration reporter, String textToAssert) { reporter.Add(new Act("Verify error message when user enter invalid details")); String actualText = Selenide.GetText(driver, Locator.Get(LocatorType.XPath, "//div[@class='login-form']/descendant::li"), Selenide.ControlType.Label); if (!textToAssert.Equals(actualText)) { reporter.Chapter.Step.Action.IsSuccess = false; throw new Exception(String.Format( @"Expected Error message not appeared, Expected: {0}, Actual: {1}", textToAssert, actualText)); } }
/// <summary> /// Verifies whether the page is Login or not /// </summary> /// <param name="Driver">Initialized RemoteWebDriver instance</param> public static void NavigateToURL(RemoteWebDriver driver, string url) { if (TestContext.Parameters["siteName"] != null) { Selenide.NavigateTo(driver, TestContext.Parameters["siteName"]); test.Log(LogStatus.Pass, "Navigated to : " + TestContext.Parameters["siteName"]); } else { Selenide.NavigateTo(driver, url); test.Log(LogStatus.Pass, "Navigated to : " + url); } }
/// <summary> /// Clicks [Project Search] on top bar /// </summary> public static void QuickNavLineItem(RemoteWebDriver driver, Iteration reporter, String lineItemId) { reporter.Add(new Act("Set Quick Navigation Line Item " + lineItemId)); Selenide.SetText(driver, new Locator(LocatorType.ID, "quickNavInput"), Selenide.ControlType.Textbox, lineItemId); if (Selenide.Browser.isIPadSafari(driver)) { Selenide.JS.Enter(driver, new Locator(LocatorType.ID, "quickNavInput")); } else { Selenide.Enter(driver, new Locator(LocatorType.ID, "quickNavInput")); } }
//Handle sync just time public static int HandleSync(RemoteWebDriver driver, bool invoked = true) { string s = ConfigurationManager.AppSettings.Get("HandleSync").ToString(); int time = Convert.ToInt32(ConfigurationManager.AppSettings.Get("HandleSyncTime").ToString()); if (invoked) { if (s.Contains("Y") && invoked) { Selenide.Wait(driver, time, true); } } return(time); }
/// <summary> /// VerifyTabsInCostCenterPopUp verfies tabs in cost center popup /// </summary> /// <param name="driver"></param> /// <param name="reporter"></param> public static void VerifyTabsInCostCenterPopUp(RemoteWebDriver driver, Iteration reporter) { reporter.Add(new Act("Switch to cost center popup window")); reporter.Add(new Act("Click on each tab in the cost center popup window")); Selenide.SwitchToDefaultContent(driver); Selenide.SwitchToFrame(driver, Locator.Get(LocatorType.ID, "dlg_ifrm_search")); int index = Selenide.GetElementCount(driver, Locator.Get(LocatorType.XPath, "//div[@id='tab_ctrl']/ul/li")); for (int tab = 1; tab <= index; tab++) { Selenide.JS.Click(driver, Locator.Get(LocatorType.XPath, string.Format(@"//div[@id='tab_ctrl']/ul/li[{0}]/a/span", tab))); } }
/// <summary> /// Performs login /// </summary> /// <param name="Driver">Initialized RemoteWebDriver instance</param> /// <param name="username">Login Username</param> /// <param name="password">Login Password</param> public static void Login(RemoteWebDriver driver, Iteration reporter, string username, string password) { reporter.Add(new Act(String.Format("Set Username {0}, Password {1} and Click Login", username, password))); Selenide.WaitForElementVisible(driver, Util.GetLocator("UserNamTxtBox")); Selenide.SetText(driver, Util.GetLocator("UserNamTxtBox"), Selenide.ControlType.Textbox, username); Selenide.SetText(driver, Util.GetLocator("PasswordTxtBox"), Selenide.ControlType.Textbox, password); Selenide.Click(driver, Util.GetLocator("LoginBtn")); System.Threading.Thread.Sleep(2000); Actions actions = new Actions(driver); actions.SendKeys(OpenQA.Selenium.Keys.Escape); //var ajaxIsComplete = (bool)(driver as IJavaScriptExecutor).ExecuteScript("return jQuery.active == 0"); ((IJavaScriptExecutor)driver).ExecuteScript("return window.stop();"); var ajaxIsComplete = (bool)(driver as IJavaScriptExecutor).ExecuteScript("return jQuery.active == 0"); //Selenide.WaitForElementVisible(driver, Util.GetLocator("DashBoardOpenTickets")); }