diff --git a/py/test/selenium/webdriver/common/executing_javascript_tests.py b/py/test/selenium/webdriver/common/executing_javascript_tests.py index ccc5f22c0c15f..4e3221fb9fb67 100644 --- a/py/test/selenium/webdriver/common/executing_javascript_tests.py +++ b/py/test/selenium/webdriver/common/executing_javascript_tests.py @@ -216,6 +216,11 @@ def testCanPassADictionaryAsAParameter(self): res = self.driver.execute_script("return arguments[0]['foo'][1]", args); self.assertEqual(2, res) + + def testCanPassANone(self): + self._loadSimplePage() + res = self.driver.execute_script("return arguments[0] === null", None) + self.assertTrue(res) def _pageURL(self, name): return "http://localhost:%d/%s.html" % (self.webserver.port, name)