Trouble Recording events on Website using QTP
Question ID: 104107
3
0

I am currently having difficulty recording events on a particular website using QTP. I’m using QTP 10 and IE 8. After looking at the source code for the site, I currently have the following add-ins loaded: .NET, ActiveX, Java, and Web.

I’m worried though that certain parts of the site contain flash objects and I’m not sure which add-in that would require me to use. Only thing I can think to use is Felix, which I currently don’t have access to.

My main problem for the time being is a drop-down menu that pops up from a mouse over. I tried using FireEvent, but with no success. I also tried making a virtual object(table) for the menu headers, because upon further inseption, all of the headers are considered one object. Even tried analog recording, which of course didn’t work

From what I have tried I think this goes back to add-ins, and which should be used, particularly one for Flash objects.

If anyone could help I would greatly appreciate it.

Marked as spam
Posted by (Questions: 2, Answers: 1)
Asked on April 30, 2010 7:41 pm
47 views
Answers (3)
3
Private answer

One thing similar to FireEvents is to go into the Recording Configuration tool, and add the custom html tags if you know them, you can configure them on the left side of the tool, and then specify whether to watch behavior or events, and what types of events to watch. One quick way to test if this might work is to also go into this same tool, and move the recording level up to ''High'' and try recording. You should capture a bunch of events that you may be able to parse through in your script and use only those that seem to work with it. You may also need to pause between steps with a small wait statement to make sure QTP doesn't go too fast through the events.

Marked as spam
Posted by (Questions: 2, Answers: 477)
Answered on May 25, 2010 3:35 pm
1
Private answer

Is it possible after activating the mouse over and the dropdown displaying, to use the keystrokes? The mouse over object must be added in the object repository for the below code to work.

Set swShell = CreateObject(''WScript.Shell'')
swShell.AppActivate ''<>''
swShell.SendKeys ''{DOWN}''
swShell.SendKeys ''{DOWN}''
swShell.SendKeys ''{ENTER}''

Marked as spam
Posted by (Questions: 0, Answers: 4)
Answered on May 6, 2010 5:30 am
0
Though this is an idea I hadn't thought of, I am unable to use keykstrokes for the drop down menu.
( at May 6, 2010 1:02 pm)
0
Private answer

Something that I've seen in the past is that to get a menu to drop down correctly, the method used was on mousemove (which is not listed in QTP as a default method, however it did work). This was discovered through a little digging through the source of the page. If you can locate the specific button in the source, it may lead you to the correct method.

Marked as spam
Posted by (Questions: 1, Answers: 7)
Answered on July 8, 2010 7:33 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top