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

Unified Diff: chrome/test/webdriver/commands/session_with_id.cc

Issue 8341044: Enhance and refactor ChromeDriver's capability handling. Log warning for (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 2 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/commands/session_with_id.cc
diff --git a/chrome/test/webdriver/commands/session_with_id.cc b/chrome/test/webdriver/commands/session_with_id.cc
index b3155e29fe7f5d71cf90c5ab7c49f70e76086773..5a958146b274f96cc89ecca9a7e0c7598e7c3a9a 100644
--- a/chrome/test/webdriver/commands/session_with_id.cc
+++ b/chrome/test/webdriver/commands/session_with_id.cc
@@ -49,9 +49,20 @@ void SessionWithID::ExecuteGet(Response* const response) {
temp_value->SetString("platform", "unknown");
#endif
- temp_value->SetBoolean("cssSelectorsEnabled", true);
temp_value->SetBoolean("javascriptEnabled", true);
temp_value->SetBoolean("takesScreenshot", true);
+ temp_value->SetBoolean("handlesAlerts", true);
+ temp_value->SetBoolean("databaseEnabled", false);
+ temp_value->SetBoolean("locationContextEnabled", false);
+ temp_value->SetBoolean("applicationCacheEnabled", false);
+ temp_value->SetBoolean("browserConnectionEnabled", false);
+ temp_value->SetBoolean("cssSelectorsEnabled", true);
+ temp_value->SetBoolean("webStorageEnabled", false);
+ temp_value->SetBoolean("rotatable", false);
+ temp_value->SetBoolean("acceptSslCerts", false);
+ // Even when ChromeDriver does not OS-events, the input simulation produces
+ // the same effect for most purposes (except IME).
+ temp_value->SetBoolean("nativeEvents", true);
// Custom non-standard session info.
temp_value->SetWithoutPathExpansion(
« no previous file with comments | « chrome/test/webdriver/commands/create_session.cc ('k') | chrome/test/webdriver/webdriver_capabilities_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698