QuickTest Professional code works on one browser but not another.

  • Questions
  • QuickTest Professional code works on one browser but not another.
Question ID: 104271
0
0

I have a web page which a click on an image needs to be performed. The objects method for click works for IE 7 and 8 but, will not work in Firefox. The image object can be found from the object repository. Help

Marked as spam
Posted by (Questions: 63, Answers: 1)
Asked on November 3, 2010 8:20 pm
12 views
Answers (1)
9
Private answer

Different browsers sometimes will require different type of events to execute a method. I have found by changing the replay type sometime will fix the problem.

How to change the replay modes during execution of a test.

#


Setting.WebPackage(''ReplayType'') = 2

Indicates how mouse operations should be run. The value can be one of the following:
1 - Runs mouse operations using browser events.
2 - Runs mouse operations using the mouse.
Default is 1

I normally only change the replay type for the line of code that has problem of execution and then set it back to default.

For example:


Setting.WebPackage(''ReplayType'') = 2
Browser(''qqqq'').Page(''uuuu'').Webbutton(''bbb'').click
Setting.WebPackage(''ReplayType'') = 2$
Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on November 3, 2010 8:26 pm
Thank you, that helped out.
( at November 4, 2010 2:21 pm)