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

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

Issue 12093057: [ChromeDriver] Send DOM.getDocument after each DOM.documentUpdated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile error on win_rel Created 7 years, 11 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/navigation_tracker.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/navigation_tracker.cc
diff --git a/chrome/test/chromedriver/navigation_tracker.cc b/chrome/test/chromedriver/navigation_tracker.cc
index 4d9625041cc111182a9faf4b6df03b293bfed381..8c042f55291f3b93d410db465452ceaed8b850db 100644
--- a/chrome/test/chromedriver/navigation_tracker.cc
+++ b/chrome/test/chromedriver/navigation_tracker.cc
@@ -12,6 +12,13 @@ NavigationTracker::NavigationTracker() {}
NavigationTracker::~NavigationTracker() {}
+Status NavigationTracker::Init(DevToolsClient* client) {
+ // Enable page domain notifications to allow tracking navigation state.
+ base::DictionaryValue params;
+ DCHECK(client);
+ return client->SendCommand("Page.enable", params);
+}
+
bool NavigationTracker::IsPendingNavigation(const std::string& frame_id) {
return frame_state_[frame_id].IsPendingNavigation();
}
« no previous file with comments | « chrome/test/chromedriver/navigation_tracker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698