@@ -879,7 +879,7 @@ FirefoxDriver.prototype.getAlert = function(respond) {
879
879
fxdriver . modals . isModalPresent (
880
880
function ( present ) {
881
881
if ( ! present ) {
882
- respond . status = bot . ErrorCode . NO_MODAL_DIALOG_OPEN ;
882
+ respond . status = bot . ErrorCode . NO_SUCH_ALERT ;
883
883
respond . value = { message : 'No alert is present' } ;
884
884
}
885
885
respond . send ( ) ;
@@ -892,7 +892,7 @@ FirefoxDriver.prototype.dismissAlert = function(respond) {
892
892
fxdriver . modals . isModalPresent (
893
893
function ( present ) {
894
894
if ( ! present ) {
895
- respond . status = bot . ErrorCode . NO_MODAL_DIALOG_OPEN ;
895
+ respond . status = bot . ErrorCode . NO_SUCH_ALERT ;
896
896
respond . value = { message : 'No alert is present' } ;
897
897
} else {
898
898
fxdriver . modals . dismissAlert ( self ) ;
@@ -906,7 +906,7 @@ FirefoxDriver.prototype.acceptAlert = function(respond) {
906
906
fxdriver . modals . isModalPresent (
907
907
function ( present ) {
908
908
if ( ! present ) {
909
- respond . status = bot . ErrorCode . NO_MODAL_DIALOG_OPEN ;
909
+ respond . status = bot . ErrorCode . NO_SUCH_ALERT ;
910
910
respond . value = { message : 'No alert is present' } ;
911
911
} else {
912
912
fxdriver . modals . acceptAlert ( self ) ;
@@ -923,7 +923,7 @@ FirefoxDriver.prototype.getAlertText = function(respond) {
923
923
if ( present ) {
924
924
respond . value = fxdriver . modals . getText ( driver ) ;
925
925
} else {
926
- respond . status = bot . ErrorCode . NO_MODAL_DIALOG_OPEN ;
926
+ respond . status = bot . ErrorCode . NO_SUCH_ALERT ;
927
927
respond . value = { message : 'No alert is present' } ;
928
928
}
929
929
respond . send ( ) ;
@@ -935,7 +935,7 @@ FirefoxDriver.prototype.setAlertValue = function(respond, parameters) {
935
935
fxdriver . modals . isModalPresent (
936
936
function ( present ) {
937
937
if ( ! present ) {
938
- respond . status = bot . ErrorCode . NO_MODAL_DIALOG_OPEN ;
938
+ respond . status = bot . ErrorCode . NO_SUCH_ALERT ;
939
939
respond . value = { message : 'No alert is present' } ;
940
940
} else {
941
941
fxdriver . modals . setValue ( parameters [ 'text' ] ) ;
0 commit comments