Menu items in Maya 2015 (QT)
Posted: Wed Nov 26, 2014 5:03 pm
Hi,
I'm having trouble with getting proper recognition of menu and submenu items in Maya 2015, which is running on QT. I'm on Ranorex 5.2.1 with native QT support, but the problem is more or less the same with previous versions and the accessibility plugin.
Here is what I see in the Spy, when looking at items of the File menu of Maya:
The File menu is actually a form, as every other menu and submenu. For each menu item, there is an "Element QWidget" and a MenuItem with the proper name.
When recording in Ranorex, the "Element QWidget" is added to the repository. If I change it by the corresponding MenuItem, a click on this element will not be aligned with the menu item. You can see that on the picture above, highlighting the "Save Scene" item displays the outline between "New Scene" and "Open Scene".
I would like to use this MenuItem element, because it has more information, such as the text being displayed. Right now, I can only use the "Element QWidget", which contains no useful information. So the only way I can click on a menu item is by saying: it's element[3]. But if another item is added before that, it will break the test.
Any idea about why it happens and how to fix it?
Thanks
Bruno
I'm having trouble with getting proper recognition of menu and submenu items in Maya 2015, which is running on QT. I'm on Ranorex 5.2.1 with native QT support, but the problem is more or less the same with previous versions and the accessibility plugin.
Here is what I see in the Spy, when looking at items of the File menu of Maya:
The File menu is actually a form, as every other menu and submenu. For each menu item, there is an "Element QWidget" and a MenuItem with the proper name.
When recording in Ranorex, the "Element QWidget" is added to the repository. If I change it by the corresponding MenuItem, a click on this element will not be aligned with the menu item. You can see that on the picture above, highlighting the "Save Scene" item displays the outline between "New Scene" and "Open Scene".
I would like to use this MenuItem element, because it has more information, such as the text being displayed. Right now, I can only use the "Element QWidget", which contains no useful information. So the only way I can click on a menu item is by saying: it's element[3]. But if another item is added before that, it will break the test.
Any idea about why it happens and how to fix it?
Thanks
Bruno