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 #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 |
OLD | NEW |