01-09-2010, 10:19 AM
Hi saket,
I did try your code and it threw an errotr at this instance:
Please have a look at my code pasted below:
'Declared a object and trying to get the child object as described by passing (row,colum,index) varaibles.
'Trying to get the background color of the object.
But, at the second step QTP throws an error:
Object required: "objwe"
line[49]: "sclor = objwe.Object.currentStyle.backgroundColor."
Please suggest me what went wrong in my declaration???
Thanks
Swetha
I did try your code and it threw an errotr at this instance:
Please have a look at my code pasted below:
'Declared a object and trying to get the child object as described by passing (row,colum,index) varaibles.
Code:
set objwe = browser("TalonPro Solutions").Page("TalonPro Solutions").Frame("Frame").WebTable("Property").ChildItem(RCntr, CCntr, "WebElement", iCnt)
'Trying to get the background color of the object.
Code:
sclor = objwe.Object.currentStyle.backgroundColor
But, at the second step QTP throws an error:
Object required: "objwe"
line[49]: "sclor = objwe.Object.currentStyle.backgroundColor."
Please suggest me what went wrong in my declaration???
Thanks
Swetha