RemoveRedundancyFilter

protected override void Run(IUITestActionStack stack)
{
    if (stack.Peek().ActionName == "WheelRotate" ||
        stack.Peek().ActionName == "Left ButtonDown" ||
        stack.Peek().ActionName == "Left Drag")
    {
        stack.Pop();
    }
}

This should almost always be the first filter. It removes three action types that are never useful for the AX CUIT Extension nor for playback (in AX), and make reasoning about the action stack more difficult.

Last edited Aug 1, 2014 at 6:24 PM by wgoodin, version 5