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

Side by Side Diff: chrome/test/chromedriver/commands.h

Issue 11884058: [chromedriver] Implement commands: findChildElement, findChildElements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/chromedriver/command_executor_impl.cc ('k') | chrome/test/chromedriver/commands.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_TEST_CHROMEDRIVER_COMMANDS_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_COMMANDS_H_
6 #define CHROME_TEST_CHROMEDRIVER_COMMANDS_H_ 6 #define CHROME_TEST_CHROMEDRIVER_COMMANDS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 scoped_ptr<base::Value>* value); 65 scoped_ptr<base::Value>* value);
66 66
67 // Get the current page title. 67 // Get the current page title.
68 Status ExecuteGetTitle( 68 Status ExecuteGetTitle(
69 Session* session, 69 Session* session,
70 const base::DictionaryValue& params, 70 const base::DictionaryValue& params,
71 scoped_ptr<base::Value>* value); 71 scoped_ptr<base::Value>* value);
72 72
73 // Search for an element on the page, starting from the document root. 73 // Search for an element on the page, starting from the document root.
74 Status ExecuteFindElement( 74 Status ExecuteFindElement(
75 int interval_ms,
75 Session* session, 76 Session* session,
76 const base::DictionaryValue& params, 77 const base::DictionaryValue& params,
77 scoped_ptr<base::Value>* value); 78 scoped_ptr<base::Value>* value);
78 79
79 // Search for multiple elements on the page, starting from the document root. 80 // Search for multiple elements on the page, starting from the document root.
80 Status ExecuteFindElements( 81 Status ExecuteFindElements(
82 int interval_ms,
81 Session* session, 83 Session* session,
82 const base::DictionaryValue& params, 84 const base::DictionaryValue& params,
83 scoped_ptr<base::Value>* value); 85 scoped_ptr<base::Value>* value);
86
87 // Search for an element on the page, starting from the given element.
88 Status ExecuteFindChildElement(
89 int interval_ms,
90 Session* session,
91 const base::DictionaryValue& params,
92 scoped_ptr<base::Value>* value);
93
94 // Search for multiple elements on the page, starting from the given element.
95 Status ExecuteFindChildElements(
96 int interval_ms,
97 Session* session,
98 const base::DictionaryValue& params,
99 scoped_ptr<base::Value>* value);
84 100
85 // Configure the amount of time that a particular type of operation can execute 101 // Configure the amount of time that a particular type of operation can execute
86 // for before they are aborted and a timeout error is returned to the client. 102 // for before they are aborted and a timeout error is returned to the client.
87 Status ExecuteSetTimeout( 103 Status ExecuteSetTimeout(
88 Session* session, 104 Session* session,
89 const base::DictionaryValue& params, 105 const base::DictionaryValue& params,
90 scoped_ptr<base::Value>* value); 106 scoped_ptr<base::Value>* value);
91 107
92 // Get the current page url. 108 // Get the current page url.
93 Status ExecuteGetCurrentUrl( 109 Status ExecuteGetCurrentUrl(
(...skipping 13 matching lines...) Expand all
107 const base::DictionaryValue& params, 123 const base::DictionaryValue& params,
108 scoped_ptr<base::Value>* value); 124 scoped_ptr<base::Value>* value);
109 125
110 // Refresh the current page. 126 // Refresh the current page.
111 Status ExecuteRefresh( 127 Status ExecuteRefresh(
112 Session* session, 128 Session* session,
113 const base::DictionaryValue& params, 129 const base::DictionaryValue& params,
114 scoped_ptr<base::Value>* value); 130 scoped_ptr<base::Value>* value);
115 131
116 #endif // CHROME_TEST_CHROMEDRIVER_COMMANDS_H_ 132 #endif // CHROME_TEST_CHROMEDRIVER_COMMANDS_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/command_executor_impl.cc ('k') | chrome/test/chromedriver/commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698