| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library webdriver; | 5 library webdriver; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io'; |
| 8 import 'dart:json' as json; | 9 import 'dart:json' as json; |
| 9 import 'dart:uri'; | 10 import 'dart:uri'; |
| 10 import 'dart:io'; | |
| 11 | 11 |
| 12 part 'src/base64decoder.dart'; | 12 part 'src/base64decoder.dart'; |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * WebDriver bindings for Dart. | 15 * WebDriver bindings for Dart. |
| 16 * | 16 * |
| 17 * These bindings are based on the WebDriver JSON wire protocol spec | 17 * These bindings are based on the WebDriver JSON wire protocol spec |
| 18 * (http://code.google.com/p/selenium/wiki/JsonWireProtocol). Not | 18 * (http://code.google.com/p/selenium/wiki/JsonWireProtocol). Not |
| 19 * all of these commands are implemented yet by WebDriver itself. | 19 * all of these commands are implemented yet by WebDriver itself. |
| 20 * Nontheless this is a complete implementation of the spec as the | 20 * Nontheless this is a complete implementation of the spec as the |
| (...skipping 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1350 * Get the log for a given log type. Log buffer is reset after each request. | 1350 * Get the log for a given log type. Log buffer is reset after each request. |
| 1351 * Each log entry is a [Map] with these fields: | 1351 * Each log entry is a [Map] with these fields: |
| 1352 * | 1352 * |
| 1353 * 'timestamp' (int) - The timestamp of the entry. | 1353 * 'timestamp' (int) - The timestamp of the entry. |
| 1354 * 'level' (String) - The log level of the entry, for example, "INFO". | 1354 * 'level' (String) - The log level of the entry, for example, "INFO". |
| 1355 * 'message' (String) - The log message. | 1355 * 'message' (String) - The log message. |
| 1356 */ | 1356 */ |
| 1357 Future<List<Map>> getLogs(String type) => | 1357 Future<List<Map>> getLogs(String type) => |
| 1358 _post('log', params: { 'type': type }); | 1358 _post('log', params: { 'type': type }); |
| 1359 } | 1359 } |
| OLD | NEW |