Micro Focus QTP (UFT) Forums
How can Identify all Browsers in Scripts - 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 can Identify all Browsers in Scripts (/Thread-How-can-Identify-all-Browsers-in-Scripts)



How can Identify all Browsers in Scripts - chetan-24 - 12-26-2008

hello
I am using Three different Browsers in Single scripts as follows:

Code:
Browser("Secure-Place1Flash5-IF").Page("Secure-Place1Flash5-IF").Link("Secure-Sophus-Place1Flash9-ST").Click
Browser("Browser").Page("Page").WinObject("Inactive Control").Click 97,203
Browser("Sop-Place1Flash5-SCR").Page("Sop-Place1Flash5-SCR").Sync

now i want to spacify any browser for some script and that script need to cover all displayed browsers. i.e
Browser("Secure-Place1Flash5-IF")
Browser("Browser")
Browser("Sop-Place1Flash5-SCR")

so can i use like regular expression in that like
Browser(" [a-z]")
Please spacify how can i cover all browser for this type of scenario

Thanks
Chetan


RE: How can Identify all Browsers in Scripts - Ankur - 12-26-2008

As I have written many times before. It will be good if you provide details on what have you tried to resolve the above problem? Also next time onwards, please use Preview Post button and format your code properly before posting.