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

Unified Diff: chrome/test/chromedriver/session_commands.cc

Issue 1827003004: [Chromedriver] Chromedriver should handle unexpected alert automatically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New modifications Created 4 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/chromedriver/session_commands.cc
diff --git a/chrome/test/chromedriver/session_commands.cc b/chrome/test/chromedriver/session_commands.cc
index 64d9e97dc7f79c78889ab6fae712a056951e9a77..6ea77ca3ac55a081ff26f2701a48253c1e38eb65 100644
--- a/chrome/test/chromedriver/session_commands.cc
+++ b/chrome/test/chromedriver/session_commands.cc
@@ -127,6 +127,8 @@ std::unique_ptr<base::DictionaryValue> CreateCapabilities(Chrome* chrome) {
caps->SetBoolean("acceptSslCerts", true);
caps->SetBoolean("nativeEvents", true);
caps->SetBoolean("hasTouchScreen", chrome->HasTouchScreen());
+ caps->SetString("unexpectedAlertBehaviour",
+ chrome->UnexpectedAlertBehaviour());
ChromeDesktopImpl* desktop = NULL;
Status status = chrome->GetAsDesktop(&desktop);

Powered by Google App Engine
This is Rietveld 408576698