OLD | NEW |
---|---|
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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
304 | 304 |
305 def Quit(self): | 305 def Quit(self): |
306 """Quits the browser and ends the session.""" | 306 """Quits the browser and ends the session.""" |
307 self.ExecuteCommand(Command.QUIT) | 307 self.ExecuteCommand(Command.QUIT) |
308 | 308 |
309 def GetLog(self, type): | 309 def GetLog(self, type): |
310 return self.ExecuteCommand(Command.GET_LOG, {'type': type}) | 310 return self.ExecuteCommand(Command.GET_LOG, {'type': type}) |
311 | 311 |
312 def GetAvailableLogTypes(self): | 312 def GetAvailableLogTypes(self): |
313 return self.ExecuteCommand(Command.GET_AVAILABLE_LOG_TYPES) | 313 return self.ExecuteCommand(Command.GET_AVAILABLE_LOG_TYPES) |
314 | |
315 def IsAutoReportingEnabled(self): | |
316 return self.ExecuteCommand(Command.IS_AUTO_REPORTING_ENABLED) | |
317 | |
318 def SetAutoReportingEnabled(self, enable): | |
319 self.ExecuteCommand(Command.SET_AUTO_REPORTING_ENABLED, {'enable': enable}) | |
frankf
2014/01/08 01:23:49
i'd name enable -> enabled
chrisgao (Use stgao instead)
2014/01/09 22:11:55
+1
samuong
2014/01/16 00:29:28
Done.
| |
OLD | NEW |