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

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

Issue 222873002: Remove pyauto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 8 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/env 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 testTypeIntoTextBox(self):
14 """Type into a text input box and verify its value."""
15 driver = self.NewWebDriver()
16 driver.get('about:blank')
17 driver.execute_script('document.body.innerHTML = "<input type=\'text\'>"')
18 input = driver.find_element_by_tag_name('input')
19 self.assertEquals('', input.get_attribute('value'))
20 input.send_keys('test')
21 self.assertEquals('test', input.get_attribute('value'))
22
23 def testCanConnectToRestartedBrowser(self):
24 """Restart the browser and connect again with WebDriver."""
25 driver = self.NewWebDriver()
26 self.RestartBrowser()
27 driver = self.NewWebDriver()
28 driver.get('about:blank')
29 self.assertEquals('about:blank', driver.title)
30
31
32 if __name__ == '__main__':
33 pyauto_functional.Main()
OLDNEW
« no previous file with comments | « chrome/test/functional/pyauto_functional.py ('k') | chrome/test/functional/remote_host_functional.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698