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

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

Issue 12764021: [chromedriver] Support clicking an element in sub frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 7 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
Index: chrome/test/chromedriver/session_commands.cc
diff --git a/chrome/test/chromedriver/session_commands.cc b/chrome/test/chromedriver/session_commands.cc
index aa0cf12de1ccb5ab8fea15b5b8a663b03e79287d..d48dc933ad8cd57f42d51b3e351fe33eaf755dd6 100644
--- a/chrome/test/chromedriver/session_commands.cc
+++ b/chrome/test/chromedriver/session_commands.cc
@@ -158,7 +158,7 @@ Status ExecuteSwitchToWindow(
if (!web_view)
return Status(kNoSuchWindow);
session->window = web_view->GetId();
- session->frame = "";
+ session->SwitchToTopFrame();
session->mouse_position = WebPoint(0, 0);
return Status(kOk);
}

Powered by Google App Engine
This is Rietveld 408576698