Ask a Question

How to get browser name in VBScript

platha
Occasional Contributor

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 1

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");

}



Best regards,
Alexey

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: