• Ian Struiksma's avatar
    Clean up duplicate code in captured_sites_test_utils · ac7c97b8
    Ian Struiksma authored
    As list of actions available grows the same code is replicated for
    each action execution method. This CL adds a couple helper methods:
    ExtractFrameAndVerifyElement
    SimulateKeyPressWrapper
    To encapsulate some logic in one place.
    
    Add CloseTab and PressSpace actions to captured sites framework
    
    Fixed multiple tests by adding additional methods and reviewing the
    stored site recipe files.
    
    Bug: 984664
    Change-Id: I5ceb03e92e76e4dfaeff77e9b456961331e04b68
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1828230
    Commit-Queue: Ian Struiksma <ianstruiksma@google.com>
    Auto-Submit: Ian Struiksma <ianstruiksma@google.com>
    Reviewed-by: default avatarDominic Battré <battre@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#701695}
    ac7c97b8
captured_sites_test_utils.cc 65.6 KB