I am testing a web Application both in Firefox and IE. I need to toggle between the two browsers to test the App. I am looking for a vbscript to set the default browser to IE and do the test and then again set the default browser to Firefox using vbscript and test the AUT again. Please let me know if you need any additional information.
Re: Need VBScript to set a browser to default browser
Am using folowing code snippet to create and run IE and firefox browsers:-
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
Window("hwnd:=" & IE.HWND).Maximize
'SystemUtil.Run "C:\Program Files\Mozilla Firefox\firefox.exe",url
In case I need to run firefox am commenting out IE code and uncommenting firefox SystemUtil.Run code.