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

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

Issue 1827003004: [Chromedriver] Chromedriver should handle unexpected alert automatically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/chromedriver/test/run_py_tests.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/window_commands.cc
diff --git a/chrome/test/chromedriver/window_commands.cc b/chrome/test/chromedriver/window_commands.cc
index 4f357c244d5ff0befe831df90051e772a9119a28..6540ee41dd3ee56351d88f6e980758c166e7ba15 100644
--- a/chrome/test/chromedriver/window_commands.cc
+++ b/chrome/test/chromedriver/window_commands.cc
@@ -222,6 +222,10 @@ Status ExecuteWindowCommand(
web_view->GetJavaScriptDialogManager()->GetDialogMessage(&alert_text);
if (status.IsError())
return status;
+ status = web_view->GetJavaScriptDialogManager()
samuong 2016/03/30 17:22:56 please add a comment above this line saying: // C
gmanikpure 2016/04/01 16:54:07 Done.
+ ->HandleDialog(true, session->prompt_text.get());
samuong 2016/03/30 17:22:56 nit: break line after the opening ( for HandleDial
gmanikpure 2016/04/01 16:54:07 Done.
+ if (status.IsError())
+ return status;
return Status(kUnexpectedAlertOpen, "{Alert text : " + alert_text + "}");
}
« no previous file with comments | « chrome/test/chromedriver/test/run_py_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698