I am learning HP UFT.
Recently I came across fireevent
and I tried to implement it on the website of Flipkart. I was trying to use firevent("onmouseover")
for the link Men
on the homepage of the website.
I used ChildObjects
to find out the Link and WebElement (in two different tests), first Highlighted it and then used object.fireevent("onmouseover")
as well as object.fireevent("OnClick")
. The OnClick
is working and it is showing the link as selected (i.e. the dotted box covering the link when we press tab), but it is not showing the Menu Under Men Section.
I had googled and bingged a lot. But was unable to find the exact working of FireEvent in QTP/UFT.
Please Help me solving the above problem as well as some tutorials on FireEvent.
EDIT: I am using IE 11 for testing.
I found a solution to my problem and it is working perfectly.
Setting.WebPackage("ReplayType") = 2
object.FireEvent "onmouseover"
Setting.WebPackage("ReplayType") = 1
In this case, the object
will be:
Browser("name:=Online Shopping.*").Page("name:=Online Shopping.*").Link("innertext:=Men")
I have tried this and it is working fine. I guess, we do not need any alternatives. But I really don't know is, Ctrl+Space is not working for this in UFT. Don't know the reason.