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 = TrueOn 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
