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

Unified Diff: chrome/test/chromedriver/session.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.cc
diff --git a/chrome/test/chromedriver/session.cc b/chrome/test/chromedriver/session.cc
index d65a42729d12c34201898914650d0798bfca0096..eaeda0944cfdffaa06a3b648b309d64e8179fc05 100644
--- a/chrome/test/chromedriver/session.cc
+++ b/chrome/test/chromedriver/session.cc
@@ -52,6 +52,17 @@ Status Session::GetTargetWindow(WebView** web_view) {
return Status(kNoSuchWindow, "target window already closed");
}
+void Session::SetToFrame(const std::string& new_frame,
+ const std::string& xpath) {
+ if (new_frame.empty()) {
+ frame = "";
+ frame_elements.clear();
+ } else {
+ frame_elements.push_back(FrameInfo(frame, xpath));
+ frame = new_frame;
+ }
+}
+
scoped_ptr<base::DictionaryValue> Session::CreateCapabilities() {
scoped_ptr<base::DictionaryValue> caps(new base::DictionaryValue());
caps->SetString("browserName", "chrome");

Powered by Google App Engine
This is Rietveld 408576698