Hi,
we want to select a tabpage which might be not shown initially:
How can Ranorex select a tabpage which can be visible or not?
As shown in the attached image and snapshot the tabpage "Mengenstaffel" (at Index 9) is not visible so a simple mouse-click won't select this tabpage. Humans simply click ``UpDown`` to make this tabpage visible, how could Ranorex act?
Regards,
BCTest
How to select a tabpage which is initially not shown?
How to select a tabpage which is initially not shown?
You do not have the required permissions to view the files attached to this post.
Re: How to select a tabpage which is initially not shown?
If not visible then click the UpDown until visible? I've no idea what EnsureVisible does on a tabpage as we have very few of those so I've not had to solve that problem before.
I've had to write a few things like that e.g. widen a column until the full rawtext that I'm looking for appears, or scroll a list until a certain item becomes visible. Sometimes I use the page jumping on scroll bars to get near, then revert to the up/down arrows to fine tune things.
I've had to write a few things like that e.g. widen a column until the full rawtext that I'm looking for appears, or scroll a list until a certain item becomes visible. Sometimes I use the page jumping on scroll bars to get near, then revert to the up/down arrows to fine tune things.
Re: How to select a tabpage which is initially not shown?
This is actually our problem: How can we check, if we have to click UpDown or not?
As you can see in the attached image the feature Visible is True despite the tabpage is not visible.
Something like
While (!tabpage.Visible) UpDown.Click() tabpage.Click()won't work.
Regards,
BCTest
Re: How to select a tabpage which is initially not shown?
Click until the coordinates fall within bounds of the dialog maybe?
No idea, haven't had to solve this problem before.
No idea, haven't had to solve this problem before.
Re: How to select a tabpage which is initially not shown?
Hi,
what if just simply use TabPage.Select() method?
The control should support this operation and it will select the proper tab page (regardless of visibility).
what if just simply use TabPage.Select() method?
The control should support this operation and it will select the proper tab page (regardless of visibility).