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

Unified Diff: chrome/test/chromedriver/run_py_tests.py

Issue 12764021: [chromedriver] Support clicking an element in sub frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/run_py_tests.py
diff --git a/chrome/test/chromedriver/run_py_tests.py b/chrome/test/chromedriver/run_py_tests.py
index 64732b3b67ce67f45c3425039782206806d2c070..0b65cffd92c2ab0c66dea304025ded5bf55a8c23 100755
--- a/chrome/test/chromedriver/run_py_tests.py
+++ b/chrome/test/chromedriver/run_py_tests.py
@@ -64,6 +64,15 @@ class ChromeDriverTest(ChromeDriverBaseTest):
android_package=_ANDROID_PACKAGE)
def testStartStop(self):
+ self._driver.Load(self.GetHttpUrlForFile('/chromedriver/frame_test.html'))
kkania 2013/03/12 04:04:07 ?
chrisgao (Use stgao instead) 2013/03/12 17:41:18 Whoops, forgot to remove this...
+ iframe = self._driver.FindElement('tag name', 'iframe')
+ self._driver.ExecuteScript('arguments[0].src = "page_test.html";', iframe)
+ import pdb; pdb.set_trace()
+ self._driver.SwitchToFrame(iframe)
+ self.assertTrue(self._driver.ExecuteScript('return window.top != window'))
+ link = self._driver.FindElement('tag name', 'a')
+ import pdb; pdb.set_trace()
+ link.Click()
pass
def testLoadUrl(self):

Powered by Google App Engine
This is Rietveld 408576698