Locked Unable to read TreeView in .ASPX page

  • Thursday, April 26, 2012 9:24 PM
     
     

    Hi All

    I am doing automation for sites developed in Sharepoint. There are many web parts in the site and many filters to select . I was able to identify the web parts object. However, I am facing dificulty in recognizing the filters. Clicking filters brings up the tree-view containing all the child filters and each has a expand-collapse button, Checkbox and a text associated with it.I wanted a smart way of getting to all the filters. Issues which I am encoutering

    a) The filters are encompassed in a div pane and nested tables.These are nested and follow parent -child associations.However I am not able to get to the fliters using parent child relational methods. I tried creating UITestControl using the div pane as a parent object, but couldn't identify the child filters with it. What is the work aournd for it ? Does the Coded UI identify Tree-View objects ?

    b) Identifing each filter and storing that as a object looks a waste of time. The filter control could change and that would mess up the code. What approach would be the best to handle such situation ?

    Any help would be geatly appreciated.

    -SDET-G

All Replies

  • Monday, April 30, 2012 8:35 AM
    Moderator
     
     

    Hi SDET-G,
     
    Thank you for your question.

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
     
    Thank you for your understanding and support.


    Tony Xiao [MSFT]
    MSDN Community Support | Feedback to us

  • Wednesday, May 23, 2012 9:02 AM
     
     

    Hello,

    Please refer to:

    http://msdn.microsoft.com/en-us/library/ff648556.aspx

    http://blogs.msdn.com/b/vstsqualitytools/archive/2010/04/15/uitest-framework-sharepoint-support-for-vs-2010.aspx

    Thanks & Regards,

    Jian-Wei Yu [MSFT]

    Microsoft Online Community Support

    --------------------------------------------------------------------------------

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.