Mouseover item --> Popup appears

Ask general questions here.
Hermch
Posts: 40
Joined: Thu May 26, 2011 7:17 am
Location: Germany

Mouseover item --> Popup appears

Post by Hermch » Mon Dec 05, 2011 12:03 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Mouseover item --> Popup appears

Post by Support Team » Mon Dec 05, 2011 2:26 pm

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

jchou
Posts: 26
Joined: Tue Apr 24, 2012 11:19 pm

Re: Mouseover item --> Popup appears

Post by jchou » Sat May 19, 2012 3:59 am

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Mouseover item --> Popup appears

Post by Support Team » Mon May 21, 2012 2:23 pm

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

Hermch
Posts: 40
Joined: Thu May 26, 2011 7:17 am
Location: Germany

Re: Mouseover item --> Popup appears

Post by Hermch » Fri May 25, 2012 8:56 am

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

Hermch
Posts: 40
Joined: Thu May 26, 2011 7:17 am
Location: Germany

Re: Mouseover item --> Popup appears

Post by Hermch » Fri May 25, 2012 3:08 pm

I've got it working.

The way with the Recorder and enabled hotkeys has worked.