Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Childobject return wrong checkbox count..
#1
Not Solved
Hi,

I am passing problem to get count of check box available on my Gmail inbox.
My QTP script return Zero "0" count.
I am using UFT 11.5 and IE10,11.
So far here is the only code i have.

Code:
Systemutil.CloseProcessByName "iexplore.exe"
Systemutil.Run "C:\Program Files\Internet Explorer\iexplore.exe", "https://www.gmail.com/intl/en/mail/help/about.html"
Browser("name:=Gmail - Free Storage and Email from Google").Page("title:=Gmail - Free Storage and Email from Google").Link("name:=Sign in").Click
Browser("name:=Gmail").Page("title:=Gmail").WebEdit("html id:=Email").Set "XXXXX@gmail.com"
Browser("name:=Gmail").Page("title:=Gmail").WebEdit("html id:=Passwd").Set "***"
Browser("name:=Gmail").Page("title:=Gmail").WebButton("html id:=signIn").Click

Dim oDesc,Cbox
Set Cbox =Description.Create()
Cbox("micclass").Value="Webcheckbox"
Set  oDesc=Browser("title:=Gmail").Page("url:=https://mail.google.com/mail/#inbox").ChildObjects(Cbox)

Msgbox oDesc.Count       "Return Zero checkbox count"
Dim i
For i = o To oDesc.Count-1
    oDesc(i).Set "ON"
Next

Any help would be appreciated.

Thanks,
Vipin
Reply
#2
Not Solved
Can you Check like this...

Code:
Dim oDesc,Cbox
Set Cbox =Description.Create()
Cbox("micclass").Value="Webcheckbox"
Set  oDesc=Browser("title:=.*").Page("url:=.*").ChildObjects(Cbox)

Msgbox oDesc.Count      

For i = o To oDesc.Count-1
    oDesc(i).Set "ON"
Next
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with Select checkbox from data table value jayraocourts 0 1,250 11-01-2019, 10:25 PM
Last Post: jayraocourts
Sad Click checkbox using its label name. venkatesh9032 1 3,192 08-10-2015, 10:33 PM
Last Post: kotaramamohana
  How to select dynamic checkbox from web dropdown QA_Newbie 2 4,681 07-20-2014, 09:40 PM
Last Post: QA_Newbie
  QTP childObject hadar 1 3,022 04-23-2014, 05:00 AM
Last Post: kgovadav
  How To pick up the particular mail in Post Login Gmail page and click on Checkbox akhandesh 0 2,847 12-02-2013, 01:35 PM
Last Post: akhandesh

Forum Jump:


Users browsing this thread: 2 Guest(s)