Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Checkig color of an image???
#11
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with Text color recognition Treirk 0 1,102 06-17-2019, 12:19 PM
Last Post: Treirk
  Getting background color of an object on mouse over Surya 2 3,888 06-27-2018, 08:51 PM
Last Post: vensas3181
  How can we get the Windows application Text box background color Using UFT 11.53 Kuppampattu 3 6,021 06-06-2017, 11:12 AM
Last Post: workrohit08
  SwfTreeview - Color validation for child item YogeshCallappa 0 2,290 11-10-2016, 04:55 PM
Last Post: YogeshCallappa
  how to get background color of a WinButton javierchen 1 3,049 03-17-2015, 10:59 PM
Last Post: babu123

Forum Jump:


Users browsing this thread: 1 Guest(s)