Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting background color of an object on mouse over
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
I have an object(link) which on mouse over will turn in blue color and the font becomes bold. I verified the object's properties before and after mouse over and observed that there is no change.
Is there a way to get the background color of that object?
I think we can use object.style, but let me know what exactly we need to call there.

Thanks in advance!!
Surya.
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi,

U can use DOm i.e. .object property.
below written lines might help u:
.currentStyle.backgroundColor

Regards,
Sankalp
Reply
#3
Solved: 10 Years, 8 Months, 3 Weeks ago
(04-02-2012, 10:46 AM)sshukla12 Wrote: Hi,

U can use DOm i.e. .object property.
below written lines might help u:
.currentStyle.backgroundColor

Regards,
Sankalp

Hi There,

using currentStyle.backgroundcolor it's returning value as "#c60c30" not actual name of color. Is there a way we can get actual name of the color like vnRed, vbGreen and so On.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with Text color recognition Treirk 0 963 06-17-2019, 12:19 PM
Last Post: Treirk
  How can we get the Windows application Text box background color Using UFT 11.53 Kuppampattu 3 5,659 06-06-2017, 11:12 AM
Last Post: workrohit08
  How to get the links which appears on mouse hover of parent link rajendra649 9 34,821 03-10-2017, 06:35 PM
Last Post: satish00k
  SwfTreeview - Color validation for child item YogeshCallappa 0 2,054 11-10-2016, 04:55 PM
Last Post: YogeshCallappa
  how to get background color of a WinButton javierchen 1 2,895 03-17-2015, 10:59 PM
Last Post: babu123

Forum Jump:


Users browsing this thread: 1 Guest(s)