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

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

Issue 114403005: Adding a LaunchApp command to Chromedriver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing to latest code Created 6 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
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 command_executor 5 import command_executor
6 from command_executor import Command 6 from command_executor import Command
7 from webelement import WebElement 7 from webelement import WebElement
8 8
9 9
10 class ChromeDriverException(Exception): 10 class ChromeDriverException(Exception):
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 def GetCurrentWindowHandle(self): 163 def GetCurrentWindowHandle(self):
164 return self.ExecuteCommand(Command.GET_CURRENT_WINDOW_HANDLE) 164 return self.ExecuteCommand(Command.GET_CURRENT_WINDOW_HANDLE)
165 165
166 def CloseWindow(self): 166 def CloseWindow(self):
167 self.ExecuteCommand(Command.CLOSE) 167 self.ExecuteCommand(Command.CLOSE)
168 168
169 def Load(self, url): 169 def Load(self, url):
170 self.ExecuteCommand(Command.GET, {'url': url}) 170 self.ExecuteCommand(Command.GET, {'url': url})
171 171
172 def LaunchApp(self, app_id):
173 self.ExecuteCommand(Command.LAUNCH_APP, {'id': app_id})
chrisgao (Use stgao instead) 2014/01/07 23:36:36 If you do not plan to add an end to end test in ch
bustamante 2014/01/13 21:19:29 Ok, Done.
174
chrisgao (Use stgao instead) 2014/01/07 23:36:36 And what's your plan for the change on the Java cl
bustamante 2014/01/13 21:19:29 It looks like org.openqa.selenium.chrome.ChromeDri
chrisgao (Use stgao instead) 2014/01/15 21:39:56 Sounds good, thanks.
172 def ExecuteScript(self, script, *args): 175 def ExecuteScript(self, script, *args):
173 converted_args = list(args) 176 converted_args = list(args)
174 return self.ExecuteCommand( 177 return self.ExecuteCommand(
175 Command.EXECUTE_SCRIPT, {'script': script, 'args': converted_args}) 178 Command.EXECUTE_SCRIPT, {'script': script, 'args': converted_args})
176 179
177 def ExecuteAsyncScript(self, script, *args): 180 def ExecuteAsyncScript(self, script, *args):
178 converted_args = list(args) 181 converted_args = list(args)
179 return self.ExecuteCommand( 182 return self.ExecuteCommand(
180 Command.EXECUTE_ASYNC_SCRIPT, 183 Command.EXECUTE_ASYNC_SCRIPT,
181 {'script': script, 'args': converted_args}) 184 {'script': script, 'args': converted_args})
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 307
305 def Quit(self): 308 def Quit(self):
306 """Quits the browser and ends the session.""" 309 """Quits the browser and ends the session."""
307 self.ExecuteCommand(Command.QUIT) 310 self.ExecuteCommand(Command.QUIT)
308 311
309 def GetLog(self, type): 312 def GetLog(self, type):
310 return self.ExecuteCommand(Command.GET_LOG, {'type': type}) 313 return self.ExecuteCommand(Command.GET_LOG, {'type': type})
311 314
312 def GetAvailableLogTypes(self): 315 def GetAvailableLogTypes(self):
313 return self.ExecuteCommand(Command.GET_AVAILABLE_LOG_TYPES) 316 return self.ExecuteCommand(Command.GET_AVAILABLE_LOG_TYPES)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698