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:io'; |
9 import 'dart:json' as json; | 9 import 'dart:json' as json; |
10 import 'dart:uri'; | |
11 | 10 |
12 part 'src/base64decoder.dart'; | 11 part 'src/base64decoder.dart'; |
13 | 12 |
14 /** | 13 /** |
15 * WebDriver bindings for Dart. | 14 * WebDriver bindings for Dart. |
16 * | 15 * |
17 * ## Installing ## | 16 * ## Installing ## |
18 * | 17 * |
19 * Use [pub][] to install this package. Add the following to your `pubspec.yaml` | 18 * Use [pub][] to install this package. Add the following to your `pubspec.yaml` |
20 * file. | 19 * file. |
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1461 * | 1460 * |
1462 * 'timestamp' (int) - The timestamp of the entry. | 1461 * 'timestamp' (int) - The timestamp of the entry. |
1463 * 'level' (String) - The log level of the entry, for example, "INFO". | 1462 * 'level' (String) - The log level of the entry, for example, "INFO". |
1464 * 'message' (String) - The log message. | 1463 * 'message' (String) - The log message. |
1465 * | 1464 * |
1466 * This works with Firefox but Chrome returns a 500 response due to a | 1465 * This works with Firefox but Chrome returns a 500 response due to a |
1467 * bad cast. | 1466 * bad cast. |
1468 */ | 1467 */ |
1469 Future<List<Map>> getLogs(String type) => _post('log', { 'type': type }); | 1468 Future<List<Map>> getLogs(String type) => _post('log', { 'type': type }); |
1470 } | 1469 } |
OLD | NEW |