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

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

Issue 6630001: Allow webdriver users to choose between sending the key events when... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 9 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/chromedriver_tests.py ('k') | chrome/test/webdriver/commands/session_with_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/commands/create_session.cc
===================================================================
--- chrome/test/webdriver/commands/create_session.cc (revision 79882)
+++ chrome/test/webdriver/commands/create_session.cc (working copy)
@@ -37,9 +37,15 @@
return;
}
- bool screenshot_on_error = false;
DictionaryValue* capabilities = NULL;
+ bool native_events_required = false;
if (GetDictionaryParameter("desiredCapabilities", &capabilities)) {
+ capabilities->GetBoolean("chrome.nativeEvents", &native_events_required);
+ session->set_use_native_events(native_events_required);
+ }
+
+ bool screenshot_on_error = false;
+ if (GetDictionaryParameter("desiredCapabilities", &capabilities)) {
capabilities->GetBoolean("takeScreenshotOnError", &screenshot_on_error);
session->set_screenshot_on_error(screenshot_on_error);
}
« no previous file with comments | « chrome/test/webdriver/chromedriver_tests.py ('k') | chrome/test/webdriver/commands/session_with_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698