Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Checkig color of an image???
#10
Not Solved
Hi Swetha,
Sorry for my ignorance if I didn't go through your scripts properly.
I would like to suggest you a different approach here
Code:
ObjTable = browser("TalonPro Solutions").Page("TalonPro Solutions_2").Frame("Frame").WebTable("Property_2")

With ObjTable
        RCount = .RowCount    
        bFnd = false
        For RCntr = 1 To RCount
            CCount = .ColumnCount(RCntr)
            For CCntr = 1 To CCount
                ItemCount = .ChildItemCount(RCntr, CCntr, "WebElement")     
                For iCnt = 1 to ItemCount
                        Set objWE = .ChildItem(RCntr, CCntr, "WebElement", iCnt)
                        sColor = objWE.Object.currentStyle.backgroundColor
                        If sColor = Color of the vacant element Then
                            'Check the checkbox on that row
                            bFnd = true
                            Exit For
                        End If
                Next
                If  bFnd = true Then Exit For
                
            Next
            If  bFnd = true Then Exit For
        Next
End with
can you try this and let me know if it works for you?

Reply


Messages In This Thread
Checkig color of an image??? - by swetha.b - 12-30-2009, 04:52 PM
RE: Checkig color of an image??? - by Saket - 12-30-2009, 05:19 PM
RE: Checkig color of an image??? - by swetha.b - 01-02-2010, 01:43 PM
RE: Checkig color of an image??? - by Saket - 01-04-2010, 10:16 AM
RE: Checkig color of an image??? - by bfakruddin - 01-04-2010, 12:36 PM
RE: Checkig color of an image??? - by Saket - 01-04-2010, 01:29 PM
RE: Checkig color of an image??? - by swetha.b - 01-04-2010, 06:17 PM
RE: Checkig color of an image??? - by Saket - 01-05-2010, 03:20 PM
RE: Checkig color of an image??? - by swetha.b - 01-06-2010, 07:07 PM
RE: Checkig color of an image??? - by Saket - 01-07-2010, 03:47 PM
RE: Checkig color of an image??? - by swetha.b - 01-09-2010, 10:19 AM

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,051 03-17-2015, 10:59 PM
Last Post: babu123

Forum Jump:


Users browsing this thread: 4 Guest(s)