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)) { |