Micro Focus QTP (UFT) Forums
Want to set the Checkbox in Gmail Inbox - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: General (https://www.learnqtp.com/forums/Forum-General)
+--- Forum: Posting Guidelines/Disclaimer (https://www.learnqtp.com/forums/Forum-Posting-Guidelines-Disclaimer)
+--- Thread: Want to set the Checkbox in Gmail Inbox (/Thread-Want-to-set-the-Checkbox-in-Gmail-Inbox)



Want to set the Checkbox in Gmail Inbox - shesharm - 02-14-2012

Hi,
I am trying to set or click the CheckBox in Gmail Inbox.There are total 8 columns.I am able to see 3 to 8 columns getting HighLight properly. But when i try to highLight column 1 and 2 ,it shows nothing and gives the error "Object required: 'ObjChildItem'
Line (27): "ObjChildItem.HighLight"


Code: For i = 1 to ObjGetRow
Set ObjChildItem = ObjInboxPage.ChildItem(i,1,"WebElement",0)
ObjChildItem.HighLight

All the objects are showing as WebElement ,even the checkBox also. Please help me to resolve the issue.

Thanks in Advance,



RE: Want to set the Checkbox in Gmail Inbox - basanth27 - 02-15-2012

(02-14-2012, 09:29 PM)shesharm Wrote: Hi,
I am trying to set or click the CheckBox in Gmail Inbox.There are total 8 columns.I am able to see 3 to 8 columns getting HighLight properly. But when i try to highLight column 1 and 2 ,it shows nothing and gives the error "Object required: 'ObjChildItem'
Line (27): "ObjChildItem.HighLight"


Code: For i = 1 to ObjGetRow
Set ObjChildItem = ObjInboxPage.ChildItem(i,1,"WebElement",0)
ObjChildItem.HighLight

All the objects are showing as WebElement ,even the checkBox also. Please help me to resolve the issue.

Thanks in Advance,

Probably there are no items there. What does the below return,

Code:
For i = 1  to ObjGetRow
    Set ObjChildItem = ObjInboxPage.ChildItem(i,1,"WebElement",0)
msgbox ObjChildItem.name



RE: Want to set the Checkbox in Gmail Inbox - shesharm - 02-16-2012

I tried with the above mentioned code. But i am still not able to get it. I have tried to change column position also in the childitem. With the above code i got the error "Object doesn't support this property or method: 'ObjChildItem.name'
Line (27): "msgbox ObjChildItem.name". "
From 3rd column to 8th column i am able to highlight the value. But at the 1st and 2nd column where checkbox present , i am not able to highlight it.