Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use Same QTP Scripts for IE 6, IE 7 and Firefox 2.0
#1
Not Solved
I am new to QTP and have working QTP 9.2 scripts on Internet Explorer 6.0 for an web application.

And I would like to use same scripts to execute on Internet Explorer 7.0 and Mozilla Firefox 2.0. So, in order to do that I created a global action, which is similar to following that one. I am getting objects are not found in the object repository.

So, how can add browser identification objects to object repository?
And what are the steps to take to execute same QTP Scripts for IE 6, IE 7 and Firefox 2.0?

Now I am using QTP 9.5 version. So, my intension is based on browser I would like to set some objects to browser specific . It would be great, if someone could help me in this regard.

----------------------

Code:
if(Window("Microsoft Internet Explorer").Exist) then
' for Internet Explorer 6.0

      Browser("Default Details").Dialog("Microsoft Internet Explorer").WinButton("OK").Click

'elseif (Window("Windows  Internet Explorer").Exist) then

else
'for Internet Explorer 7.0

   Browser("Default Details").Dialog("Windows Internet Explorer").WinButton("OK").Click

'else

'for Mozilla Firefox related

'Browser("Default Details").Dialog("Mozilla Firefox").WinButton("OK").Click
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Automating Mozilla FireFox Browser Achuth 0 2,029 04-15-2014, 04:13 PM
Last Post: Achuth
  QTP 11 support for firefox qtplearner88 3 5,099 07-19-2012, 07:43 AM
Last Post: vIns
  QTP is too slow while running the scripts on firefox skadam 2 5,345 11-03-2011, 01:42 PM
Last Post: skadam
  Does QTP Supports Mozilla Firefox 4.x with the help of any add ins? writetoprabha 0 3,328 06-15-2011, 10:37 AM
Last Post: writetoprabha
  FireFox support oleg8888 0 2,975 03-04-2011, 04:13 AM
Last Post: oleg8888

Forum Jump:


Users browsing this thread: 2 Guest(s)