Index: chrome/test/chromedriver/test/run_py_tests.py |
diff --git a/chrome/test/chromedriver/test/run_py_tests.py b/chrome/test/chromedriver/test/run_py_tests.py |
index 7bf8acded9eaeafd7af1cac3e650a87baca93480..044b4ff9ff30728fe5fd40327108fb0ca30562a8 100755 |
--- a/chrome/test/chromedriver/test/run_py_tests.py |
+++ b/chrome/test/chromedriver/test/run_py_tests.py |
@@ -1286,6 +1286,14 @@ class ChromeDriverTest(ChromeDriverBaseTestWithWebServer): |
self.WaitForCondition(lambda: self._driver.IsAlertOpen()) |
self._driver.HandleAlert(True) |
+ def testElementReference(self): |
+ self._driver.Load(self.GetHttpUrlForFile('/chromedriver/element_ref.html')) |
+ element = self._driver.FindElement('id', 'link') |
+ self._driver.FindElements('tag name', 'br') |
+ w3c_id_length = 36 |
+ if (self._driver.w3c_compliant): |
+ print element._id |
+ self.assertEquals(len(element._id), w3c_id_length) |
class ChromeDriverPageLoadTimeoutTest(ChromeDriverBaseTestWithWebServer): |