Hi
This is regarding QTP Automation..can anyone please tell me if the script written in one browser say IE work for Netscape..
if yes..
what changes have to be made in the object repository or code..
please this is very urgent!!
Printable View
Hi
This is regarding QTP Automation..can anyone please tell me if the script written in one browser say IE work for Netscape..
if yes..
what changes have to be made in the object repository or code..
please this is very urgent!!
Hi Smitha.
Well to answer your question shortly -
You will have to recognize the new Browser object along with its child objects. That should do the trick almost coz objects of the application would not change much except if they are frames or IE related objects...
An easier way to avoid this scenario would be using the following code -
Set Obj = CreateObject("IE.Application")
msgbox Obj
Obj.Navigate = URL
Obj.visible = true
trap the return value of obj object. Incase it is '0' that means IE exists in your machine and code would work fine....
incase return value is negative or any non-zero value include an
else clause - where
set Obj = CreateObject("NetscapeNavigator.Application")
Obj. Navigate URL
Obj.visible = true
Go on like this to check all possible browser combinations... This would also decrease your dependency on GUI map.
Cheers