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

Side by Side Diff: ios/web/public/test/web_view_interaction_test_util.h

Issue 2283963002: Add ability to submit a form using javascript. (Closed)
Patch Set: more descriptive naming 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 #import "ios/web/public/web_state/web_state.h" 5 #import "ios/web/public/web_state/web_state.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 namespace web { 9 namespace web {
10 namespace test { 10 namespace test {
11 11
12 // Returns whether the element with |element_id| in the passed |web_state| has 12 // Returns whether the element with |element_id| in the passed |web_state| has
13 // been tapped using a JavaScript click() event. 13 // been tapped using a JavaScript click() event.
14 bool TapWebViewElementWithId(web::WebState* web_state, 14 bool TapWebViewElementWithId(web::WebState* web_state,
15 const std::string& element_id); 15 const std::string& element_id);
16 16
17 // Returns whether the element with |element_id| in the passed |web_state| has 17 // Returns whether the element with |element_id| in the passed |web_state| has
18 // been focused using a JavaScript focus() event. 18 // been focused using a JavaScript focus() event.
19 bool FocusWebViewElementWithId(web::WebState* web_state, 19 bool FocusWebViewElementWithId(web::WebState* web_state,
20 const std::string& element_id); 20 const std::string& element_id);
21 21
22 // Returns whether the form with |form_id| in the passed |web_state| has been
23 // submitted using a JavaScript submit() event.
24 bool SubmitWebViewFormWithId(web::WebState* web_state,
25 const std::string& form_id);
22 } // namespace test 26 } // namespace test
23 } // namespace web 27 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698