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

Please help me How to capture the colour of a link Before MouseOver and After MouseOver
Reply
#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
#3
(01-18-2013, 04:04 PM)Ankesh Wrote: 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

Thanks Ankesh.It Is Working Fine.

Regards:
AnkammaRao
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)