lib/scoutui/commands/utils.rb in scoutui-2.0.3.12.pre vs lib/scoutui/commands/utils.rb in scoutui-2.0.3.13.pre

- old
+ new

@@ -17,10 +17,11 @@ 'assignvar', 'existsAlert', 'clickJsAlert', 'fillform', 'frame', + 'highlight', 'submitform', 'type', 'click', 'mouseover', 'navigate', @@ -130,10 +131,14 @@ def isFrame?(_action) _action.match(/^\s*(frame|switchframe|switch_frame)\s*\(/i) end + def isHighlight?(_action) + _action.match(/^\s*(highlight)/i) + end + def isVerifyElt?(_action) !_action.match(/(verifyelt|verifyelement)\(/i).nil? end def isClick?(_action) @@ -188,9 +193,11 @@ @totalCommands['existsAlert']+=1 elsif isFrame?(cmd) @totalCommands['frame']+=1 elsif isGetAlert?(cmd) @totalCommands['clickJsAlert']+=1 + elsif isHighlight?(cmd) + @totalCommands['highlight']+=1 elsif isVerifyElt?(cmd) @totalCommands['verifyelt']+=1 elsif isVerifyForm?(cmd) @totalCommands['verifyform']+=1 elsif isFillForm?(cmd)