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

Unified Diff: chrome/test/webdriver/server.cc

Issue 6507015: Implement the target locator commands for ChromeDriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/webdriver/commands/target_locator_commands.cc ('k') | chrome/test/webdriver/session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/server.cc
diff --git a/chrome/test/webdriver/server.cc b/chrome/test/webdriver/server.cc
index 829f088fb110b3c5d510dfd05bdff72126bdc522..274820a1b26aade88cdf502474bb032f61b8cb5d 100644
--- a/chrome/test/webdriver/server.cc
+++ b/chrome/test/webdriver/server.cc
@@ -38,6 +38,7 @@
#include "chrome/test/webdriver/commands/session_with_id.h"
#include "chrome/test/webdriver/commands/source_command.h"
#include "chrome/test/webdriver/commands/speed_command.h"
+#include "chrome/test/webdriver/commands/target_locator_commands.h"
#include "chrome/test/webdriver/commands/title_command.h"
#include "chrome/test/webdriver/commands/url_command.h"
#include "chrome/test/webdriver/commands/webelement_commands.h"
@@ -79,16 +80,20 @@ void InitCallbacks(struct mg_context* ctx,
base::WaitableEvent* shutdown_event) {
mg_set_uri_callback(ctx, "/shutdown", &Shutdown, shutdown_event);
- SetCallback<CreateSession>(ctx, "/session");
- SetCallback<BackCommand>(ctx, "/session/*/back");
- SetCallback<ExecuteCommand>(ctx, "/session/*/execute");
- SetCallback<ForwardCommand>(ctx, "/session/*/forward");
- SetCallback<RefreshCommand>(ctx, "/session/*/refresh");
- SetCallback<SourceCommand>(ctx, "/session/*/source");
- SetCallback<TitleCommand>(ctx, "/session/*/title");
- SetCallback<URLCommand>(ctx, "/session/*/url");
- SetCallback<SpeedCommand>(ctx, "/session/*/speed");
- SetCallback<ImplicitWaitCommand>(ctx, "/session/*/timeouts/implicit_wait");
+ SetCallback<CreateSession>(ctx, "/session");
+ SetCallback<BackCommand>(ctx, "/session/*/back");
+ SetCallback<ExecuteCommand>(ctx, "/session/*/execute");
+ SetCallback<ForwardCommand>(ctx, "/session/*/forward");
+ SetCallback<RefreshCommand>(ctx, "/session/*/refresh");
+ SetCallback<SourceCommand>(ctx, "/session/*/source");
+ SetCallback<TitleCommand>(ctx, "/session/*/title");
+ SetCallback<URLCommand>(ctx, "/session/*/url");
+ SetCallback<SpeedCommand>(ctx, "/session/*/speed");
+ SetCallback<ImplicitWaitCommand>(ctx, "/session/*/timeouts/implicit_wait");
+ SetCallback<WindowHandleCommand>(ctx, "/session/*/window_handle");
+ SetCallback<WindowHandlesCommand>(ctx, "/session/*/window_handles");
+ SetCallback<WindowCommand>(ctx, "/session/*/window");
+ SetCallback<SwitchFrameCommand>(ctx, "/session/*/frame");
// Cookie functions.
SetCallback<CookieCommand>(ctx, "/session/*/cookie");
« no previous file with comments | « chrome/test/webdriver/commands/target_locator_commands.cc ('k') | chrome/test/webdriver/session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698