Micro Focus QTP (UFT) Forums
How to find the Browser type at runtime? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to find the Browser type at runtime? (/Thread-How-to-find-the-Browser-type-at-runtime)



How to find the Browser type at runtime? - Rahull - 09-14-2012

Hi

I am running the QTP script on IE and Google browser.

How can I know at runtime on which browser script is running?

The way we find the OS version using the Built in environment variable.

Thanks
Rahul


RE: How to find the Browser type at runtime? - SteveS - 09-14-2012

Can you not just write out Chrome or IE to an environment variable when you launch the browser?