This is a migrated thread and some comments may be shown as answers.

[Solved] How To Detect View Change on the Client

1 Answer 130 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Wesley Wiser
Top achievements
Rank 1
Wesley Wiser asked on 20 Aug 2009, 01:41 PM
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?

1 Answer, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 25 Aug 2009, 07:56 AM
Hello Wesley,

We are not exactly sure what would be the best approach here, but we use the waitFor command. As you may see - it is widely used for writing selenium tests for ajax applications:

http://www.infoq.com/articles/testing-ajax-selenium


Greetings,
Helen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Scheduler
Asked by
Wesley Wiser
Top achievements
Rank 1
Answers by
Helen
Telerik team
Share this question
or