Some formatting cleanup.
Changed default timeout to 5 seconds instead of 1 minute.
diff --git a/lib/src/logs.dart b/lib/src/logs.dart
index ec9b008..d6fd7bd 100644
--- a/lib/src/logs.dart
+++ b/lib/src/logs.dart
@@ -44,4 +44,4 @@
static const String INFO = 'INFO';
static const String DEBUG = 'DEBUG';
static const String ALL = 'ALL';
-}
\ No newline at end of file
+}
diff --git a/lib/src/util.dart b/lib/src/util.dart
index b8703c0..ac63a1d 100644
--- a/lib/src/util.dart
+++ b/lib/src/util.dart
@@ -1,6 +1,6 @@
part of webdriver;
-const DEFAULT_TIMEOUT = const Duration(minutes: 1);
+const DEFAULT_TIMEOUT = const Duration(seconds: 5);
const DEFAULT_INTERVAL = const Duration(milliseconds: 500);
Future waitFor(Future predicate(), {Matcher matcher: isTrue,
diff --git a/lib/src/web_driver.dart b/lib/src/web_driver.dart
index 6916d12..984ff18 100644
--- a/lib/src/web_driver.dart
+++ b/lib/src/web_driver.dart
@@ -144,7 +144,7 @@
Navigation get navigate => new Navigation._(this);
Cookies get cookies => new Cookies._(this);
-
+
Logs get logs => new Logs._(this);
Timeouts get timeouts => new Timeouts._(this);
diff --git a/test/src/keyboard_test.dart b/test/src/keyboard_test.dart
index e67aef4..d3146c1 100644
--- a/test/src/keyboard_test.dart
+++ b/test/src/keyboard_test.dart
@@ -14,7 +14,7 @@
desiredCapabilities: Capabilities.firefox);
await driver.get(testPagePath);
textInput =
- await driver.findElement(new By.cssSelector('input[type=text]'));
+ await driver.findElement(const By.cssSelector('input[type=text]'));
await textInput.click();
});
diff --git a/test/src/logs_test.dart b/test/src/logs_test.dart
index 4474200..03441e6 100644
--- a/test/src/logs_test.dart
+++ b/test/src/logs_test.dart
@@ -6,11 +6,10 @@
void main() {
group('Logs', () {
WebDriver driver;
-
+
setUp(() async {
Map capabilities = Capabilities.chrome
- ..[Capabilities.LOGGING_PREFS] =
- {LogType.PERFORMANCE: LogLevel.INFO};
+ ..[Capabilities.LOGGING_PREFS] = {LogType.PERFORMANCE: LogLevel.INFO};
driver = await WebDriver.createDriver(desiredCapabilities: capabilities);
await driver.get('http://www.google.com');
});
diff --git a/test/src/mouse_test.dart b/test/src/mouse_test.dart
index 265253b..c148d58 100644
--- a/test/src/mouse_test.dart
+++ b/test/src/mouse_test.dart
@@ -13,7 +13,7 @@
driver = await WebDriver.createDriver(
desiredCapabilities: Capabilities.chrome);
await driver.get(testPagePath);
- button = await driver.findElement(new By.tagName('button'));
+ button = await driver.findElement(const By.tagName('button'));
});
tearDown(() => driver.quit());
diff --git a/test/src/web_driver_test.dart b/test/src/web_driver_test.dart
index 4b78076..9c81dbd 100644
--- a/test/src/web_driver_test.dart
+++ b/test/src/web_driver_test.dart
@@ -109,6 +109,7 @@
test('window', () async {
Window orig = await driver.window;
Window next;
+
await (await driver.findElement(new By.partialLinkText('Open copy')))
.click();
await for (Window window in driver.windows) {