Forum Discussion

srijansameer11's avatar
srijansameer11
New Contributor
3 years ago
Solved

Need to navigate to an MSAA object which is not available on the view and Click it

Hey, I am using the following code snippet to navigate to an object that is down the scrollable window and trying to click it, but it is not accepting the method ScrollIntoView() Can anyone suggest...
  • mattb's avatar
    3 years ago

    Hi,
    If scrolling is not working consistently I would recommend calling the keys() method with a [Down] on the tested object. Ex: testobj.keys([Down][Down])...

    I find this more robust than scrolling, and you can just call as many [Down] Keys until the object is into view. 

    I prefer this because the down keys seem to be a bit more application specific, compared to scrolling which can be a bit more dynamically generated. 

    You can call the down object either on the parent object, or on the scroll itself. 

    Full list of keys parameters: https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-sys-desktop-pda/keys-method-sys-desktop-object.html