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

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: Fix compile error. 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
« no previous file with comments | « chrome/test/chromedriver/element_util.cc ('k') | chrome/test/chromedriver/session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0f7505fb41e9442ebf830e1319855cb7985af7ab..89335bd38341c460ca65dbeecd8d57809e1896fb 100755
--- a/chrome/test/chromedriver/run_py_tests.py
+++ b/chrome/test/chromedriver/run_py_tests.py
@@ -269,6 +269,13 @@ class ChromeDriverTest(ChromeDriverBaseTest):
div.Click()
self.assertEquals(1, len(self._driver.FindElements('tag name', 'br')))
+ def testClickElementInSubFrame(self):
+ self._driver.Load(self.GetHttpUrlForFile('/chromedriver/frame_test.html'))
+ frame = self._driver.FindElement('tag name', 'iframe')
+ self._driver.SwitchToFrame(frame)
+ # Test clicking element in the sub frame.
+ self.testClickElement()
+
def testClearElement(self):
text = self._driver.ExecuteScript(
'document.body.innerHTML = \'<input type="text" value="abc">\';'
« no previous file with comments | « chrome/test/chromedriver/element_util.cc ('k') | chrome/test/chromedriver/session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698