Locked scroll in playback on wrong level

  • Wednesday, June 23, 2010 3:54 PM
     
     

    Hey,

    after I have recorded my actions I run the tests but when my recording reaches a state where it has to scroll down to click a tree item it waits for about a minute or so before it stops and the test fails.

    In the starting state of the window it has only buttons. When a button is clicked a tree is shown below it. The thing is that when it is needed to scroll to reach a button there is no problem, the playback scrolls and finds the button. The button and the scroll bar are on the same level but the tree is on a pane so it is lower than the buttons.

    Is there any way I can record the scrolling? or at least use the scrollbar with my own code? or any other way?

    Thanks, 

    -Tósi

All Replies

  • Wednesday, June 23, 2010 6:24 PM
    Moderator
     
     

    Hi

    IS this a WPF or win32 tree item? What is the error message. IS it a search failure or blokced control exception?

    Thanks

     

  • Thursday, June 24, 2010 10:45 AM
     
     

    hi,

    this is the entire error message:

    Test method CodedUITestTest.CodedUITest1.CodedUITestMethod1 threw exception: 

    Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToPerformActionOnBlockedControlException: Window 'CodedUITestTest - Microsoft Visual Studio' is blocking the control Devices. Please move the window 'CodedUITestTest - Microsoft Visual Studio' or make the control Devices visible and retry the action. Additional Details: 

    TechnologyName:  'MSAA'

    Name:  'Devices'

    Value:  '0'

    ControlType:  'TreeItem'

     ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0xF004F003

     

    does this tell you something?