Finding and Expanding a RadSlidingPane

3 posts, 0 answers
  1. LQKerry
    LQKerry avatar
    4 posts
    Member since:
    May 2013

    Posted 25 Jul 2013 Link to this post


    Hopefully a quick question or two regarding working with the RadSplitter/RadPane/RadSlidingZone/RadSlidingPane wrappers of the Testing Framework. From my MSTest script I am attempting to find the appropriate RadControl on the page that will allow me to expand the RadSlidingPane so that the content becomes visible. I have had no success. The following is a snippet of the source code (I believe it should be enough to show what I am working with):

    <telerik:RadSplitter ID="RadSplitterActivityPage"
                <telerik:RadPane ID="RadPaneFilter"
                    <telerik:RadSlidingZone ID="RadSlidingZoneFilter"
                        <telerik:RadSlidingPane ID="RadSlidingPageFilter"
                            <telerik:RadAjaxPanel ID="RadAjaxPanelFilter"
                                <div style="margin:5px;">
                                    <label class="riLabel">Start Date:</label>
                                    <br />
                                    <telerik:RadDateTimePicker ID="RadDateTimePickerStartDate"
                                    <br />
                                    <label class="riLabel">End Date:</label>
                                    <br />
                                    <telerik:RadDateTimePicker ID="RadDateTimePickerEndDate"

    Etc, etc, etc......

    From the Testing Framework API I can see that RadPane and RadSlidingZone wrappers are the only two that have the "Expand" method. I have tried both with no success. So, I assume I am either not "finding" the appropriate element on the page, or in the case of the Expand method for the RadZlidingZone wrapper I am not providing the appropriate value for the "id" parameter.

    Can anyone please provide me some guidance? Much appreciated in advance!
  2. LQKerry
    LQKerry avatar
    4 posts
    Member since:
    May 2013

    Posted 26 Jul 2013 Link to this post

    I am happy to say that I took a fresh look at this first thing this morning and I was able to figure this out. The following is the basis of how I got it to work:

    private RadSlidingZone _filterSlidingZone;
    private RadSlidingPane _filterPane;
    //Filter Pane
    HtmlFindExpression filterPaneExpr = new HtmlFindExpression("id=?RadSlidingPageFilter", "class=~rspSlidePane");
    _browser.WaitForElement(filterPaneExpr, 20000, false);
    _filterPane = _browser.Find.ByExpression<RadSlidingPane>(filterPaneExpr);
    //Filter Sliding Zone
    HtmlFindExpression filterSlidingZoneExpr = new HtmlFindExpression("id=?RadSlidingZoneFilter", "class=~rspSlideZone");
    _browser.WaitForElement(filterSlidingZoneExpr, 20000, false);
    _filterSlidingZone = _browser.Find.ByExpression<RadSlidingZone>(filterSlidingZoneExpr);
  3. Velin Koychev
    Velin Koychev avatar
    88 posts

    Posted 29 Jul 2013 Link to this post

    Hello Kerry,

    It is great to hear that you've been able to resolve this issue. Thank you for sharing with us your solution!

    Velin Koychev
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top