Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(548)

Side by Side Diff: ios/web/public/test/earl_grey/web_view_actions.h

Issue 2321613002: Add helper that taps on elements in the webview. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_WEB_PUBLIC_TEST_EARL_GREY_WEB_VIEW_ACTIONS_H_ 5 #ifndef IOS_WEB_PUBLIC_TEST_EARL_GREY_WEB_VIEW_ACTIONS_H_
6 #define IOS_WEB_PUBLIC_TEST_EARL_GREY_WEB_VIEW_ACTIONS_H_ 6 #define IOS_WEB_PUBLIC_TEST_EARL_GREY_WEB_VIEW_ACTIONS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #import <EarlGrey/EarlGrey.h> 10 #import <EarlGrey/EarlGrey.h>
(...skipping 14 matching lines...) Expand all
25 // |state|. If |triggers_context_menu| is true, this gesture is expected to 25 // |state|. If |triggers_context_menu| is true, this gesture is expected to
26 // cause the context menu to appear, and is not expected to trigger events 26 // cause the context menu to appear, and is not expected to trigger events
27 // in the webview. If |triggers_context_menu| is false, the converse is true. 27 // in the webview. If |triggers_context_menu| is false, the converse is true.
28 // This action doesn't fail if the context menu isn't displayed; calling code 28 // This action doesn't fail if the context menu isn't displayed; calling code
29 // should check for that separately with a matcher. 29 // should check for that separately with a matcher.
30 id<GREYAction> webViewLongPressElementForContextMenu( 30 id<GREYAction> webViewLongPressElementForContextMenu(
31 WebState* state, 31 WebState* state,
32 const std::string& element_id, 32 const std::string& element_id,
33 bool triggers_context_menu); 33 bool triggers_context_menu);
34 34
35 // Taps on element |element_id| in the webview of |state|.
36 id<GREYAction> webViewPressElement(WebState* state,
Eugene But (OOO till 7-30) 2016/09/07 16:44:43 s/webViewPressElement/webViewTapElement ?
jif 2016/09/08 13:41:01 Done.
37 const std::string& element_id);
38
35 } // namespace web 39 } // namespace web
36 40
37 #endif // IOS_WEB_PUBLIC_TEST_EARL_GREY_WEB_VIEW_ACTIONS_H_ 41 #endif // IOS_WEB_PUBLIC_TEST_EARL_GREY_WEB_VIEW_ACTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | ios/web/public/test/earl_grey/web_view_actions.mm » ('j') | ios/web/public/test/earl_grey/web_view_actions.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698