Tuesday 3 September 2013

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

You can use below code to open an url in QTP.

url = "www.google.co.in"


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

Above code will open url in all browsers.

In plain vbscript you can use below code to open a url.

Set o = createobject("wscript.shell")
o.Run "chrome.exe www.makaan.com"
o.Run "firefox.exe www.makaan.com"
Set o = nothing



Please give your inputs, suggestions, feedback to Us about above QTP topic. We value your thoughts.

Best QTP Books

Everything About QTP

Hello Friends,
You can find QTP study material, Multiple choice questions (mcq), QTP question bank, QTP question papers, QTP notes, QTP questionnaire, scenario based QTP interview questions, QTP tutorial and QTP training on this site.

If you are a fresher or experienced QTP professional with (1/2/3/4) years of experience, this blog is just for you.