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

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

Issue 2295443003: [chromedriver] Added option to make element references W3C compliant. (Closed)
Patch Set: fix errors introduced during previous rebase Created 4 years, 1 month 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/session_commands.cc ('k') | chrome/test/chromedriver/window_commands.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3e98c31fc728acc98fdd286b5fee81e57df9095d..d3a79d86298c7327ef220e18fd4feb59c2390031 100755
--- a/chrome/test/chromedriver/test/run_py_tests.py
+++ b/chrome/test/chromedriver/test/run_py_tests.py
@@ -1351,6 +1351,14 @@ class ChromeDriverTest(ChromeDriverBaseTestWithWebServer):
self.assertTrue(
self._driver.ExecuteScript('return arguments[0].checked', checkbox))
+ 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):
+ self.assertEquals(len(element._id), w3c_id_length)
+
class ChromeDriverPageLoadTimeoutTest(ChromeDriverBaseTestWithWebServer):
« no previous file with comments | « chrome/test/chromedriver/session_commands.cc ('k') | chrome/test/chromedriver/window_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698