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

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: use bool success instead of handle != 0 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
Index: chrome/test/webdriver/server.cc
diff --git a/chrome/test/webdriver/server.cc b/chrome/test/webdriver/server.cc
index 8046c046cf91e6d2777c6f9087eff4d49301ff04..6c8b33a7d7a1dcd48f08505156601f1accf4b3a6 100644
--- a/chrome/test/webdriver/server.cc
+++ b/chrome/test/webdriver/server.cc
@@ -37,6 +37,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"
@@ -78,16 +79,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");
// WebElement commands
SetCallback<FindOneElementCommand>(ctx, "/session/*/element");

Powered by Google App Engine
This is Rietveld 408576698