Forum Discussion
Thanks for the response,
I did use the .Keys("[PageDown]") on the scrollbar, it does scroll to display next set of objects. However I was hoping to find a better way to bring the intended object to display by using that object iteslf.
At any given scrolled position I should be able to find that object(that object can be at the top(Up) or bottom(Down) of the form irrespective of the current scrolled position).
For now I am using
//1019 is the ScreenTop value(position of the indicator) of the scroll indicator when it is scrolled down to maximum
var downMax = false;
while (!object.VisibleOnScreen)
{
if (scrollBarIndicator.ScreenTop < 1019 && !downMax)
{
scrollBar.Keys("[PageDown]");
}
else
{
down = true;
scrollBar.Keys("[PageUp]");
}
}
This works, but, is there a nicer way to get to the object which is not visible on screen?
Hi,
> is there a nicer way to get to the object which is not visible on screen?
I'm afraid that there is not...
TestComplete (and TestLeft) can automatically put into view quite a few controls, but not MSAA ones, according to my knowledge.
For official reply you may ask Support directly via the https://support.smartbear.com/message/?prod=TestLeft form and I will appreciate it if you update this thread in case they provide better solution.
Related Content
- 8 years agotmahender12
- 4 years agoJosh_147
- 9 years agoglenmetz
Recent Discussions
- 24 days agoSD2