Oh, well you could build a dictionary object populated with the browser for each machine, check which machine the script is running on, and then open the appropriate browser.
You could also look in the registry to see what the default browser is, and then open it. you can usually find the default browser at: HKEY_CLASSES_ROOT\htmlfile \shell\open\command, but it can be different for each windows platform - to which I think, no fun.. OR.... -get a list of processes -create a script that enters "http://google.com" or any other page in the start/run box...this will get windows to open whatever browser is default. -get another list of processes, and compare the two lists, and you will know which browser is running. take your pick -any technique should work. mikePietsch On Aug 20, 2009, at 8:30 PM, abha tiwari wrote: > the problem with all the above solutions is that they wil open IE or > any other browser specifed in the code but my requirement is to open > any browser i.e say IE is installed on member A's machine, Firefox > is installed on member B's machine and AOL is installed on member > C's machine, then i need a common code to invoke any browser?? > > Please let me know > > On Thu, Aug 20, 2009 at 10:52 PM, Kamran <[email protected]> wrote: > Very simple code, > Dim sURL > sURL = "www.hotmail.com" > SystemUtil.Run "iexplore.exe",sURL > > -- > MK > > > On Thu, Aug 20, 2009 at 11:12 AM, Dhanasekar Subramaniam > <[email protected] > > wrote: > Hi, > Why do u looking for a descriptive programming to open a browser? > SystemUtil is used to open any exe,if you really need to open the > you may try a VBScript to open a browser. > > Thanks, > Dhanasekar S. > http://testingideas.wordpress.com > > > 2009/8/20 abha tiwari <[email protected]> > > Hi All, > > Can you give me a code in descriptive programming that can be used > to open any browser (eg mozilla, IE) a common piece of code that can > launch any browser installed on you system? > > -- > Abha Tiwari > > > > > > -- > Regards, > Dhanasekar S. > http://testingideas.wordpress.com > --------------------------------------------------------- > Let us make the World Greener > http://www.greenpeace.org/international/ > ----------------------------------------------------------- > > > > > > > > -- > Regards, > Kamran > > > > > > > -- > Abha Tiwari > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en -~----------~----~----~----~------~----~------~--~---
