summaryrefslogtreecommitdiffstats
path: root/chrome/test/webdriver/commands/webdriver_command.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/webdriver/commands/webdriver_command.cc')
-rw-r--r--chrome/test/webdriver/commands/webdriver_command.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/test/webdriver/commands/webdriver_command.cc b/chrome/test/webdriver/commands/webdriver_command.cc
index efa0f8a..8d038f1 100644
--- a/chrome/test/webdriver/commands/webdriver_command.cc
+++ b/chrome/test/webdriver/commands/webdriver_command.cc
@@ -30,6 +30,9 @@ bool WebDriverCommand::Init(Response* const response) {
kSessionNotFound);
return false;
}
+ if (!session_->WaitForAllTabsToStopLoading()) {
+ LOG(WARNING) << "Failed to wait for all tabs to stop loading";
+ }
response->SetField("sessionId", Value::CreateStringValue(session_id));
return true;