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

Unified Diff: chrome/test/webdriver/test/chromedriver_tests.py

Issue 10829048: Update WebDriver atoms to pick up r17582. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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/webdriver/test/bad_native_funcs.html ('k') | third_party/webdriver/README.chromium » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/test/chromedriver_tests.py
diff --git a/chrome/test/webdriver/test/chromedriver_tests.py b/chrome/test/webdriver/test/chromedriver_tests.py
index c2b2a890751171f7d0ce6981bcfffd2df34241c7..596009a0b0dddf93a53704858bbb6f3ccac76bee 100644
--- a/chrome/test/webdriver/test/chromedriver_tests.py
+++ b/chrome/test/webdriver/test/chromedriver_tests.py
@@ -1146,3 +1146,12 @@ class ExtensionTest(ChromeDriverTest):
WebDriverWait(driver, 10).until(is_page_action_visible)
ext.click_page_action()
self._testExtensionView(driver, ext.get_popup_handle(), ext)
+
+class BadJSTest(ChromeDriverTest):
+ """Tests that ensure sites with hacky JS don't break ChromeDriver."""
+
+ def testFindElementDoesNotUseNativeFuncs(self):
+ driver = self.GetNewDriver()
+ driver.get(self.GetTestDataUrl() + '/bad_native_funcs.html')
+ # This will throw an exception if any native funcs are used.
+ driver.find_element_by_tag_name('body').find_elements_by_tag_name('div')
« no previous file with comments | « chrome/test/webdriver/test/bad_native_funcs.html ('k') | third_party/webdriver/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698