OLD | NEW |
---|---|
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 Loading... | |
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_ |
OLD | NEW |