Micro Focus QTP (UFT) Forums
how to get a link present under mouseover action - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: how to get a link present under mouseover action (/Thread-how-to-get-a-link-present-under-mouseover-action)



how to get a link present under mouseover action - priyadarisini - 11-28-2013

Hi All,

I need to click a link which is present under mouseover action of a tab. Used the below code but it didnt work
Code:
Browser("granPAPA Hom_2").Page("granPAPA Hom").WebElement("Security").FireEvent("onmouseover")
'set oshell = createobject("Wscript.shell")
'oshell.sendkeys "{DOWN}"
oshell.sendkeys "{ENTER}"

Key board actions are displayed and only mouse click working to display the page. Request your help on this

Thanks
Priya


RE: how to get a link present under mouseover action - Parke - 12-03-2013

Priya:

I have not run into this problem and no example to play with. I have had problems with oshell.sendkeys in the past. I normally use DeviceReplay. Take a look at http://www.joecolantonio.com/2011/07/19/qtp-secret-code-chart-revealed-for-devicereplay-presskey-keydown-keyup-and-pressnkeys/

hth,


Parke