| Index: chrome/test/functional/pyauto_webdriver.py
|
| diff --git a/chrome/test/functional/pyauto_webdriver.py b/chrome/test/functional/pyauto_webdriver.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ddc9930b87de080885b05436a6922e36615b347e
|
| --- /dev/null
|
| +++ b/chrome/test/functional/pyauto_webdriver.py
|
| @@ -0,0 +1,27 @@
|
| +#!/usr/bin/python
|
| +# Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import pyauto_functional
|
| +import pyauto
|
| +
|
| +
|
| +class PyAutoWebDriverTest(pyauto.PyUITest):
|
| + """Tests PyAuto-WebDriver integration."""
|
| +
|
| + def testCanOpenUrl(self):
|
| + """Navigate to about:blank with WebDriver."""
|
| + driver = self.NewWebDriver()
|
| + self.assertEquals(1, driver.execute_script('return 1'))
|
| +
|
| + def testCanConnectToRestartedBrowser(self):
|
| + """Restart the browser and connect again with WebDriver."""
|
| + driver = self.NewWebDriver()
|
| + self.RestartBrowser()
|
| + driver = self.NewWebDriver()
|
| + self.assertEquals(1, driver.execute_script('return 1'))
|
| +
|
| +
|
| +if __name__ == '__main__':
|
| + pyauto_functional.Main()
|
|
|