Clean up duplicate code in captured_sites_test_utils
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:Dominic Battré <battre@chromium.org> Cr-Commit-Position: refs/heads/master@{#701695}
Showing
Please register or sign in to comment