Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OPen new tab through script
#1
Not Solved
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.

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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  When QTP is open am not able to open my AUT. chetan3987 2 3,105 02-12-2014, 01:18 AM
Last Post: supputuri
  Unable to close new tab pradeep singh 3 8,974 03-05-2013, 09:43 AM
Last Post: pradeep singh
  How to identify the properties of amenu item(not Weblist)oncethe menu tab is clicked? raval 1 2,733 10-02-2012, 09:16 PM
Last Post: jcraig26
Cool how to re-enable Keyword tab dol_fin 2 4,876 03-05-2012, 11:23 AM
Last Post: Saajo87
  Correct syntax for read and load global datatable from Resources tab in QC to QTP hari1024 1 5,283 12-08-2011, 10:43 AM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)