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

Side by Side Diff: chrome/test/chromedriver/chromedriver.py

Issue 11746025: [chromedriver]Implement command: title. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolved merge conflict. Created 7 years, 11 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
« no previous file with comments | « no previous file | chrome/test/chromedriver/command_executor_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import ctypes 5 import ctypes
6 import json 6 import json
7 7
8 class ChromeDriverException(Exception): 8 class ChromeDriverException(Exception):
9 pass 9 pass
10 class UnknownCommand(ChromeDriverException): 10 class UnknownCommand(ChromeDriverException):
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 def SwitchToFrame(self, id_or_name): 78 def SwitchToFrame(self, id_or_name):
79 self._ExecuteSessionCommand('switchToFrame', {'id': id_or_name}) 79 self._ExecuteSessionCommand('switchToFrame', {'id': id_or_name})
80 80
81 def SwitchToFrameByIndex(self, index): 81 def SwitchToFrameByIndex(self, index):
82 self.SwitchToFrame(index) 82 self.SwitchToFrame(index)
83 83
84 def SwitchToMainFrame(self): 84 def SwitchToMainFrame(self):
85 self.SwitchToFrame(None) 85 self.SwitchToFrame(None)
86 86
87 def GetTitle(self):
88 return self._ExecuteSessionCommand('getTitle')
89
87 def Quit(self): 90 def Quit(self):
88 """Quits the browser and ends the session.""" 91 """Quits the browser and ends the session."""
89 self._ExecuteSessionCommand('quit') 92 self._ExecuteSessionCommand('quit')
OLDNEW
« no previous file with comments | « no previous file | chrome/test/chromedriver/command_executor_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698