Using Methods on invisible items (Dropdowns)
Posted: Mon Jul 08, 2019 4:06 pm
Operating System: Windows 10 Enterprise 1809
Ranorex: 9.0.1
I try to work on Comboboxes (Dropdowns with folders and elements inside) right now with Ranorex and encounter several problems.
https://www.ranorex.com/help/latest/ran ... hot-files/
First of all, I would like to provide a snapshot, but the generation of a snapshot with hidden elements using the Scroll key dont work for me. Maybe it's cause I've to press FN + Pause for this function, not sure. It starts the save dialog, but it tells me elements are missing.
About the actual problem:
After tracking an element of the dropdown, it finds all the treeitems (folders and actual items) which are in opened folders right now. Closed folders are not found. Some of those elements are Visible: True, the one I would have to scroll to are Visible: false if they're hidden outside the scroll area.
https://i.imgur.com/b8mRNmY.png
I tried to focus those elements with those methods:
But nothing works - the elements outside the visible area cannot be shown. I got a user code which open all visible treeItems which are actually folders via Usercode. This works, but only on visible elements, not on invisible ones.
This leads me to the conclusion, that methods only work on visible elements for me.
Now I hope to find a solution for all those problems ^^ Thx already.
Ranorex: 9.0.1
I try to work on Comboboxes (Dropdowns with folders and elements inside) right now with Ranorex and encounter several problems.
https://www.ranorex.com/help/latest/ran ... hot-files/
First of all, I would like to provide a snapshot, but the generation of a snapshot with hidden elements using the Scroll key dont work for me. Maybe it's cause I've to press FN + Pause for this function, not sure. It starts the save dialog, but it tells me elements are missing.
About the actual problem:
After tracking an element of the dropdown, it finds all the treeitems (folders and actual items) which are in opened folders right now. Closed folders are not found. Some of those elements are Visible: True, the one I would have to scroll to are Visible: false if they're hidden outside the scroll area.
https://i.imgur.com/b8mRNmY.png
I tried to focus those elements with those methods:
Code: Select all
ti.EnsureVisible();
ti.Focus();
ti.MoveTo();
ti.Select();
Code: Select all
ti.Expand();
This leads me to the conclusion, that methods only work on visible elements for me.
Now I hope to find a solution for all those problems ^^ Thx already.