qtp - Object required: UFT -


can't further on here. in situation i've select webcheckbox depending on index. below code

set brw = browser("title:=.*").page("title:=.*")  milestonetblrow=brw.webtable("cols:=7","column names:=;milestone name;milestone date;description;created time;modified time;action").rowcount  milestonetblcol=brw.webtable("cols:=7","column names:=;milestone name;milestone date;description;created time;modified time;action").columncount(1)  = 2 milestonetblrow  step 1     set milestonetbl = browser("title:=.*").page("title:=.*").webtable("cols:=7","column names:=;milestone name;milestone date;description;created time;modified time;action")     `milestonetbl.childitem(i,1,"webcheckbox",0).set "on"     browser("title:=.*").page("title:=.*").webbutton("name:=mass edit","type:=button","html tag:=input","index:=0").click     btnsave "0" next 

the error happens @ object required: 'milestonetbl.childitem(...).
webtable, need select webcheckbox depending upon there index.in case, index starts @ index "0" & in 2nd row of webtable. row number & index doesn't match here. if index 0 row 2. need supply variable keep increasing index 1. i've tried using milestonetblrow out here milestonetbl.childitem(i,1,"webcheckbox",milestonetblrow).set "on" & returns error object required: 'milestonetbl.childitem(...).

could please correct me out here?

create 1 temporary variable , increment variable in 'for' loop this

temp=0 *set brw = browser("title:=.*").page("title:=.*") milestonetblrow=brw.webtable("cols:=7","column names:=;milestone           name;milestone date;description;created time;modified time;action").rowcount milestonetblcol=brw.webtable("cols:=7","column names:=;milestone name;milestone date;description;created time;modified time;action").columncount(1) = 2 milestonetblrow  step 1 set milestonetbl =   browser("title:=.*").page("title:=.*").webtable("cols:=7","column  names:=;milestone name;milestone date;description;created time;modified time;action") `milestonetbl.childitem(i,1,"webcheckbox",temp).set "on"  browser("title:=.*").page("title:=.*").webbutton("name:=mass edit","type:=button","html tag:=input","index:=0").click btnsave "0" temp=temp+1 next 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -