-
Junior Member
IE Netscape compatible script
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!!
-
Expert Member
Re: IE Netscape compatible script
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules