Page 1 of 1

Mouseover item --> Popup appears

Posted: Mon Dec 05, 2011 12:03 pm
by Hermch
Hi,

my application has some popups which only appear, when a user moves the mouse over a specific item. As soon as the mouse leaves this item, the popup disappears again.
How can popups like these be tracked?
I could not track them yet with Ranorex spy because when i want to move the mouse to the popup, the cursor leaves the triggering item and the popup disappears again.

thanks and regards

Re: Mouseover item --> Popup appears

Posted: Mon Dec 05, 2011 2:26 pm
by Support Team
Hi,

basically, tooltips appears as own windows, therefore, if they are visible they are directly listed in the layer below the host. Because they are disappearing when moving the mouse away from the item, they have to be handled in a special way.

With Spy:
Move your mouse to the item, wait until the tooltip appears and do a instant tracking on that item.
Now the item your mouse was pointing on is highlighted in spy. Now look for your tooltip - it should be within the list in the layer below your host.

With Recorder: While recording, enable "Enable Hotkeys" in the recorder toolbar. After that, move your mouse to the item, press "m" (this records a mouse move to this item), wait until the tooltip appears, then press "t". Now the information about the tooltip is displayed - select the attribute of the tooltip which you want to validate.

You can also manually add the tooltip to your repository (in Respository, Add New Item -> Add Item, use path "/tooltip"). Drag and drop the added repository item to the action table of your recorder to do a validation (Manually create recordings)

Best Regards,
Martin
Ranorex Support Team

Re: Mouseover item --> Popup appears

Posted: Sat May 19, 2012 3:59 am
by jchou
I followed what Martin said, pressed 'M' when mouse moved to the target item, then when tooltip appeared, pressed 'T'. After that, how do I get to the captured tooltip value/text? Thanks.

Re: Mouseover item --> Popup appears

Posted: Mon May 21, 2012 2:23 pm
by Support Team
Hi,

After you pressed "t" a validation dialog should appear where you can select the different attributes of the tool tip, did the tool tip window appear?
If not there is also another way how you can get it, it is described at the following link in section "Snapshots from popup windows, dropdown combo boxes or dropdown menus".
After you have pressed the <SCROLL> key you have to search for the specific element, if you can't find it you can also try to create a Snapshot with the <SCROLL> key from the host, because then you should also get the popup if it is shown in a separate form.

Regards,
Markus
Ranorex Support Team

Re: Mouseover item --> Popup appears

Posted: Fri May 25, 2012 8:56 am
by Hermch
How about Popups which only appear for a very short time. About one second.
Is there a way to track such popups?

I have the following situation:

- Click on an item to change application language
- Popup appers with: "please wait... change to English" (for one second or even less)

How can I track such a popup? In the tree view of spy I cannot find it. And it is not possible to track it fast enough with spy or instant tracking

Re: Mouseover item --> Popup appears

Posted: Fri May 25, 2012 3:08 pm
by Hermch
I've got it working.

The way with the Recorder and enabled hotkeys has worked.