02-11-2013, 06:05 PM
HI ,
I have qtp 10 on my machine and my need is to open a given link in new tab. I have tried using the following statements.
Both of them are throwing General Run Error.
I tried using sendkeys method
Till here its working fine. But the navigation to the desired url is neither happening nor throwing any error.
Anyone please help how to get it done.
Thanks
Sams
I have qtp 10 on my machine and my need is to open a given link in new tab. I have tried using the following statements.
Code:
Browser("url:=abc","creationtime:=0").Object.navigate <link href>, CLng("&H800")
Browser("url:=abc","creationtime:=0").OpenNewTab
Both of them are throwing General Run Error.
I tried using sendkeys method
Code:
Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "^{t}"
Till here its working fine. But the navigation to the desired url is neither happening nor throwing any error.
Code:
Browser("creationtime:=1").Navigate <link href>
Anyone please help how to get it done.
Thanks
Sams