[TestLeft] How to interact with an object that needs scrolling to view (Desktop application)
Hi
I m currently automating a Desktop application using C# NUnit, TestLeft, most of the objects identified are MSAAObjects.
I want to click on an object which is not visible on screen and I get the following error
SmartBear.TestLeft.TestObjects.InvocationException: 'There was an attempt to perform an action on a zero-sized window.
The window size is (0, 0); the screen rectangle: the left top corner is (0, 0), the right bottom corner is (0, 0)
There is a bit of scrolling involved to get the object visible on screen, so I tried
//obj is of type IMSAAObject
while (!obj.VisibleOnScreen)
{
driver.Desktop.Keys("[Down]");
}
But this takes ages to get to that object.
Is there a proper way to scroll to view the object? This is a MSAAObject, so there is no Focus() or ClickItem() options
Any sort of help is appreciated
Thanks in advance