Checkig color of an image??? - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Checkig color of an image??? (/Thread-Checkig-color-of-an-image) Pages:
1
2
|
RE: Checkig color of an image??? - swetha.b - 01-09-2010 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. 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 |