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

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

Issue 1799183002: [ChromeDriver] Add nested frame xpath expression in order to switch to frame present inside nested … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « chrome/test/chromedriver/test/run_py_tests.py ('k') | chrome/test/data/chromedriver/nested_frameset.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/window_commands.cc
diff --git a/chrome/test/chromedriver/window_commands.cc b/chrome/test/chromedriver/window_commands.cc
index ff0be7fa2c2e8505d49f6d99f16f715a51593886..4a45b2bae4a66da39070efbdebb2de9e915b5974 100644
--- a/chrome/test/chromedriver/window_commands.cc
+++ b/chrome/test/chromedriver/window_commands.cc
@@ -347,7 +347,7 @@ Status ExecuteSwitchToFrame(
" return document.evaluate(xpath, document, null, "
" XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;"
"}";
- std::string xpath = "(/html/body//iframe|/html/frameset/frame)";
+ std::string xpath = "(/html/body//iframe|/html/frameset//frame)";
std::string id_string;
int id_int;
if (id->GetAsString(&id_string)) {
« no previous file with comments | « chrome/test/chromedriver/test/run_py_tests.py ('k') | chrome/test/data/chromedriver/nested_frameset.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698