Consistify NoAlertOpenException and NoAlertPresentException to NoSuchAlertException
diff --git a/lib/src/exception.dart b/lib/src/exception.dart
index 031b399..fd4c0ca 100644
--- a/lib/src/exception.dart
+++ b/lib/src/exception.dart
@@ -62,8 +62,8 @@
return new UnableToSetCookieException(status, message);
case 26: // UnexpectedAlertOpen
return new UnexpectedAlertOpenException(status, message);
- case 27: // NoAlertOpenError
- return new NoAlertOpenException(status, message);
+ case 27: // NoSuchAlert
+ return new NoSuchAlertException(status, message);
case 29: // InvalidElementCoordinates
return new InvalidElementCoordinatesException(status, message);
case 30: // IMENotAvailable
@@ -184,8 +184,8 @@
: super._(statusCode, message);
}
-class NoAlertOpenException extends WebDriverException {
- const NoAlertOpenException(statusCode, message)
+class NoSuchAlertException extends WebDriverException {
+ const NoSuchAlertException(statusCode, message)
: super._(statusCode, message);
}
diff --git a/lib/src/target_locator.dart b/lib/src/target_locator.dart
index c5df32d..53ee770 100644
--- a/lib/src/target_locator.dart
+++ b/lib/src/target_locator.dart
@@ -48,7 +48,7 @@
/// Switches to the currently active modal dialog for this particular driver
/// instance.
///
- /// Throws [NoAlertPresentException] if there is not currently an alert.
+ /// Throws [NoSuchAlertException] if there is not currently an alert.
Future<Alert> get alert async {
var text = await _get('alert_text');
return new Alert._(text, driver);