Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How To Capture Colour Of A Link
#2
Hi,

You can change the setting and get it done.

Below statement returns color of a link.

Code:
strColor=Browser("Browser").Link("Link").Object.currentStyle.color
msgbox strColor

Below is the code to get color of link on mouseover.

Code:
Setting.WebPackage("ReplayType") = 2
Browser("Browser").Link("Link").FireEvent "onMouseOver"
MsgBox Browser("Browser").Link("Link").Object.currentStyle.color
Setting.WebPackage("ReplayType") = 1

Let me know if you have any issue.

Regards,
Ankesh
Reply


Messages In This Thread
How To Capture Colour Of A Link - by AnkammaRao - 01-17-2013, 03:53 PM
RE: How To Capture Colour Of A Link - by Ankesh - 01-18-2013, 04:04 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)