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

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

Issue 12224116: [ChromeDriver] Remove FrameTracker's dependency on DomTracker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/frame_tracker.cc
diff --git a/chrome/test/chromedriver/frame_tracker.cc b/chrome/test/chromedriver/frame_tracker.cc
index dd1786272724a685489c50efc731a04c11167c2c..e03c105a998167248ca7a5eae484abab736b450a 100644
--- a/chrome/test/chromedriver/frame_tracker.cc
+++ b/chrome/test/chromedriver/frame_tracker.cc
@@ -38,7 +38,10 @@ Status FrameTracker::GetContextIdForFrame(
Status FrameTracker::OnConnected() {
// Enable runtime events to allow tracking execution context creation.
base::DictionaryValue params;
- return client_->SendCommand("Runtime.enable", params);
+ Status status = client_->SendCommand("Runtime.enable", params);
+ if (status.IsError())
+ return status;
+ return client_->SendCommand("DOM.getDocument", params);
}
void FrameTracker::OnEvent(const std::string& method,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698