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.
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.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs