OLD | NEW |
1 library webdriver; | 1 #library('webdriver'); |
2 import 'dart:json'; | 2 #import('dart:json'); |
3 import 'dart:uri'; | 3 #import('dart:uri'); |
4 import 'dart:io'; | 4 #import('dart:io'); |
5 import 'dart:math'; | 5 #import('dart:math'); |
6 part 'base64decoder.dart'; | 6 #source('base64decoder.dart'); |
7 | 7 |
8 /** | 8 /** |
9 * WebDriver bindings for Dart. | 9 * WebDriver bindings for Dart. |
10 * | 10 * |
11 * These bindings are based on the WebDriver JSON wire protocol spec | 11 * These bindings are based on the WebDriver JSON wire protocol spec |
12 * (http://code.google.com/p/selenium/wiki/JsonWireProtocol). Not | 12 * (http://code.google.com/p/selenium/wiki/JsonWireProtocol). Not |
13 * all of these commands are implemented yet by WebDriver itself. | 13 * all of these commands are implemented yet by WebDriver itself. |
14 * Nontheless this is a complete implementation of the spec as the | 14 * Nontheless this is a complete implementation of the spec as the |
15 * unsupported commands may be supported in the future. Currently, | 15 * unsupported commands may be supported in the future. Currently, |
16 * there are known issues with local and session storage, script | 16 * there are known issues with local and session storage, script |
(...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1351 * Get the log for a given log type. Log buffer is reset after each request. | 1351 * Get the log for a given log type. Log buffer is reset after each request. |
1352 * Each log entry is a [Map] with these fields: | 1352 * Each log entry is a [Map] with these fields: |
1353 * | 1353 * |
1354 * 'timestamp' (int) - The timestamp of the entry. | 1354 * 'timestamp' (int) - The timestamp of the entry. |
1355 * 'level' (String) - The log level of the entry, for example, "INFO". | 1355 * 'level' (String) - The log level of the entry, for example, "INFO". |
1356 * 'message' (String) - The log message. | 1356 * 'message' (String) - The log message. |
1357 */ | 1357 */ |
1358 Future<List<Map>> getLogs(String type) => | 1358 Future<List<Map>> getLogs(String type) => |
1359 _post('log', params: { 'type': type }); | 1359 _post('log', params: { 'type': type }); |
1360 } | 1360 } |
OLD | NEW |