FireEvent ”onMouseOver” doesn’t work
Question ID: 107688

I need to move mouse over to a object and verify color changed .

Marked as spam
Posted by (Questions: 22, Answers: 6)
Asked on June 26, 2017 2:43 pm
Answers (1)
Private answer

I have used code that provides a color of the object when it changes. The color is expressed in a Hexdecimal format #c60b20 which is a form of Red per this site

Maybe you might want to change the function to test to see if the object changes color when mouse over happens instead of a specific color. Here is EXAMPLE code.

Function GetHoverColorChg(oLink)
GetHoverColorChg = false
myPreColor = oLink.Object.currentStyle.color
Setting.WebPackage(''ReplayType'') = 2
oLink.FireEvent ''onMouseOver''
GetHoverColor = oLink.Object.currentStyle.color
Setting.WebPackage(''ReplayType'') = 1
If NOT (myPreColor = GetHoverColor) Then
End If

End Function

below is how to register the method to an object.

RegisterUserFunc ''Link'', ''GetHoverColorChg'', ''GetHoverColorChg''

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on June 26, 2017 2:44 pm

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

Scroll to Top