Hi,
I'm writing tests for our product using Selenium. My issue is that I'm having trouble detecting when the Scheduler has finished loading (like after the view is change from Month to Day). My current solution is
public static void WaitForTelerikSchedulerToLoad(this Selenium.ISelenium selenium, Action function, string timeout)
{
selenium.RunScript("var wasShown = false;");
function();
selenium.WaitForCondition("window.wasShown = window.wasShown || selenium.isElementPresent('LoadingPanelScheduler'); window.wasShown && !selenium.isElementPresent('LoadingPanelScheduler')", timeout);
}
The issue with this is that it is unreliable. Is there a better way to detect that the Scheduler has finished loading?
I'm writing tests for our product using Selenium. My issue is that I'm having trouble detecting when the Scheduler has finished loading (like after the view is change from Month to Day). My current solution is
public static void WaitForTelerikSchedulerToLoad(this Selenium.ISelenium selenium, Action function, string timeout)
{
selenium.RunScript("var wasShown = false;");
function();
selenium.WaitForCondition("window.wasShown = window.wasShown || selenium.isElementPresent('LoadingPanelScheduler'); window.wasShown && !selenium.isElementPresent('LoadingPanelScheduler')", timeout);
}
The issue with this is that it is unreliable. Is there a better way to detect that the Scheduler has finished loading?