Results 1 to 2 of 2

Thread: IE Netscape compatible script

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Answers
    2

    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!!


  2. #2
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact