Sometimes "^{TAB}" does not work.... 
So we can use below method...

hwnd = Browser("creationtime:=").GetROProperty("hwnd")
Window("hwnd:=" & hwnd).Type micLCtrlDwn
Set CT = CreateObject("WScript.Shell")
CT.SendKeys " {TAB}"
Window("hwnd:=" & hwnd).Type micLCtrlUp

Thanks,
Shwetha

On Wednesday, May 2, 2012 3:45:51 PM UTC+5:30, rags wrote:
>
> there is application which consist of browse button, when i click 
> browse button it opens another tab in same browser where i need to 
> select a link. 
>
> Problem is when QTp is not able to recognize the 2nd tab . even i used 
> the Send keys methods but its not working.... 
>
> set CLT_TAB = CreateObject("WScript.Shell") 
>
> 'Browser("DMX Admin").Page("Control panel").Image("Menu 
> Manager").Click 
> 'Browser("DMX Admin_3").Page("Menu manager- new 
> page").WebEdit("txtSubMenu").set "Testing Contact us sub menu" 
> 'Browser("DMX Admin_3").Page("Menu manager- new 
> page").WebRadioGroup("select link").Select "1" 
> 'Browser("DMX Admin_3").Page("Menu manager- new 
> page").Image("browse_btn").Click 
>
> CLT_TAB.SendKeys " %{TAB}" 
>
> 'Browser("DMX Admin").Page("Static & section link page").Link("Contact 
> Us").Click 
> 'Browser("DMX Admin").Page("Static & section link page").Sync 
> 'Browser("DMX Admin").Page("Static & section link 
> page").Image("HeaderGetlink_img").Click 
> 'Browser("DMX Admin_3").Page("Menu manager- new 
> page").Image("Save").Click 
>
>
> Thanks in advance

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to