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

Side by Side Diff: chrome/test/functional/pyauto_webdriver.py

Issue 7523060: Let pyauto create an attached webdriver instance to manipulate web pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import pyauto_functional
7 import pyauto
8
9
10 class PyAutoWebDriverTest(pyauto.PyUITest):
11 """Tests PyAuto-WebDriver integration."""
12
13 def testCanOpenUrl(self):
14 """Navigate to about:blank with WebDriver."""
15 driver = self.NewWebDriver()
16 self.assertEquals(1, driver.execute_script('return 1'))
17
18 def testCanConnectToRestartedBrowser(self):
19 """Restart the browser and connect again with WebDriver."""
20 driver = self.NewWebDriver()
21 self.RestartBrowser()
22 driver = self.NewWebDriver()
23 self.assertEquals(1, driver.execute_script('return 1'))
24
25
26 if __name__ == '__main__':
27 pyauto_functional.Main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698