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

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

Issue 2230053002: [chromedriver] Added option to make element references W3C compliant. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed presubmit errors. Created 4 years, 4 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/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 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):
« 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