How to open any website in browsers (IE,chrome, firefox) in QTP?

Users can open any urls using below code in UFT/QTP automation Tool.

HP QTP:

HP Unified Functional Testing (UFT)/QTP ,formerly known as HP QuickTest Professional ,which provides functional and regression test automation for web/Desktop applications.


surl = "http://www.softwaretestutorials.co.in"


SystemUtil.Run "iexplore.exe" , url ,,,3
SystemUtil.Run "firefox.exe" , url ,,,3
SystemUtil.Run "chrome.exe" , url ,,,3

Above mentioned vbscript will open specified website url in all different browsers which is mentioned in Systemutil code.

Using pure vbscript code can open a url as below.

Set obj = createobject("wscript.shell")
obj.Run "chrome.exe www.softwaretestutorials.co.in"
obj.Run "firefox.exe www.softwaretestutorials.co.in"
Set obj = nothing

Post a Comment

0 Comments