Forum Discussion

platha's avatar
platha
Occasional Contributor
15 years ago

How to get browser name in VBScript

Hi,



I am trying to get browser name while running the web application in which browser it is.Could you please work around.



Thanks in advance

Pushpa

1 Reply

  • Hi Pushpa,


    If you have a page object and you need to find the process to which the object belongs, I recommend that you use the Parent property to retrieve the parent process and check the name of the process. Alternatively, you can check whether the Page object supports some browser-specific properties, like the Application property, which is available for IE only. For example:


    if (aqObject.IsSupported(pageObj, "Application"))

    {

      Log.Message("IE");

    }

    else

    {

      Log.Message("Firefox");

    }