Index: chrome/test/webdriver/commands/webdriver_command.cc |
diff --git a/chrome/test/webdriver/commands/webdriver_command.cc b/chrome/test/webdriver/commands/webdriver_command.cc |
index f7000da8e77407d2468a46f258b8cf8aeb1dc86a..094f65560ad338a9889fdc2fa25532126a52b42e 100644 |
--- a/chrome/test/webdriver/commands/webdriver_command.cc |
+++ b/chrome/test/webdriver/commands/webdriver_command.cc |
@@ -41,19 +41,11 @@ bool WebDriverCommand::Init(Response* const response) { |
return false; |
} |
- LOG(INFO) << "Waiting for the page to stop loading"; |
- Error* error = session_->WaitForAllTabsToStopLoading(); |
+ Error* error = session_->BeforeExecuteCommand(); |
if (error) { |
response->SetError(error); |
return false; |
} |
- LOG(INFO) << "Done waiting for the page to stop loading"; |
- error = session_->SwitchToTopFrameIfCurrentFrameInvalid(); |
- if (error) { |
- response->SetError(error); |
- return false; |
- } |
- |
response->SetField("sessionId", Value::CreateStringValue(session_id)); |
return true; |
} |