Click at the current mouse position! [message #1087355] |
Thu, 15 August 2013 10:17  |
Eclipse User |
|
|
|
Hello all,
I'm having trouble with right clicking at a specific point in my external application. I have managed to select the tab by using the 'ub_tbc_selectTab_byValue' however when I try to right click on the tab it moves the cursor into the middle of the mapped box. I need this specific location as my context menu is associated with that specific tab area. Unfortunately, I cannot map the specific tab object that I need; hence the reason for mapping the whole box. However, the context menu for the whole box is different!
So is there any way where I can right click at the specific point of the mouse cursor, without having to map the Test Case with the Component?
Any help would be greatly appreciated!
Many Thanks,
James.
[Updated on: Mon, 19 August 2013 10:15] by Moderator
|
|
|
Re: Click at the current mouse position! [message #1090427 is a reply to message #1087355] |
Tue, 20 August 2013 01:47   |
Eclipse User |
|
|
|
Hi James,
Could ub_grc_clickInComponent do the job? If the tab you need to select is in a regular position within its component, you may be able to specify its location (offset from top left corner, I think) in pixels or percent of the component.
If that worked, I don't know how you'd then access the context menu by indexpath or textpath. Presumably you could click at a position with the context menu 'under' it, but that would make selecting pretty difficult.
So alternatively, maybe ub_grc_selectContextMenuEntryWithPositionSpec_byTextpath would work? It takes the same position parameters as ub_grc_clickInComponent, but also allows you to select from the context menu.
Two caveats: 1) You may have already tried these, and
2) I haven't fully tested any of this stuff. ub_grc_selectContextMenuEntryWithPositionSpec_byTextpath works on a component I have, but that's just a simple button which extends a context menu when pressed. No idea whether tabs will play nice. Anyway, good luck.
Cheers,
Mike
|
|
|
|
|
Re: Click at the current mouse position! [message #1092144 is a reply to message #1092013] |
Thu, 22 August 2013 07:37  |
Eclipse User |
|
|
|
I'm sorry I should've mentioned this before but i'm using GUIDancer instead of Jubula, hence the dual monitors. I actually programme GUIDancer on a Macbook Pro then run the external application on a Dell Laptop running Windows 8!
I'll give your suggestion another try; i'm sure I did it right the first time, but you never know!
Thanks again,
James
|
|
|
Powered by
FUDForum. Page generated in 0.03199 seconds