I hope this will work for you...
Dim bro
Set bro = description.Create
bro("micclass").value = "browser"
dim pag
Set pag = description.Create
pag("micclass").value = "page"
Dim rr
Set rr = description.Create
rr("class").value = "J-J5-Ji J-JN-M-I-Jm"
rr("height").value = "27"
browser(bro).page(pag).WebElement(rr).Click
Set wshshell = createobject("wscript.shell")
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{DOWN}"
WshShell.SendKeys "{ENTER}"
Regards
Shashidhar
+91 -8125564879
[email protected]
On Tue, Aug 7, 2012 at 11:43 PM, NEERJA nawani <[email protected]>wrote:
> You can use childitem method to get the checkbox object from webtable.
> Set
> a=Browser("title:=Gmail.*").Page("title:=Gmail.*").Webtable("class:=th","html
> tag :=TABLE","name:=t").childitem(row,col,index,"WebCheckBox")
> a.Setvalue = True
>
>
> On 7 August 2012 20:18, sachin mahajan <[email protected]> wrote:
>
>> Hi all,
>>
>> Can anyone tell me how to tick checkbox of only unread mails in gmail
>> application.
>>
>> I tried with following code ,but didn't work
>>
>> a=Browser("title:=Gmail.*").Page("title:=Gmail.*").Webtable("class:=th","html
>> tag :=TABLE","name:=t").RowCount
>> print(a)
>>
>> For i=1 to 2
>> print(i)
>> Browser("title:=Gmail.*").Page("title:=Gmail
>> .*").Webtable("class:=th","html tag :=TABLE","name:=t").Webelement("Class
>> Name:=WebElement ","html tag:=B").Exist
>> Browser("title:=Gmail.*").Page("title:=Gmail
>> .*").Webtable("class:=th","html tag
>> :=TABLE","name:=t").WebCheckbox("type:=checkbox","name :=t","html
>> tag:=INPUT").Set "ON"
>>
>> Next
>>
>>
>> Please help me...........
>>
>> --
>> 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
>>
>
>
>
> --
> ---
> Thanks and Regards
> Neerja Nawani
> +91 99210 82318
>
> --
> 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
"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