File tree 1 file changed +4
-4
lines changed
cpp/iedriver/CommandHandlers 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -222,14 +222,14 @@ void SendKeysCommandHandler::ExecuteInternal(
222
222
bool displayed;
223
223
status_code = element_wrapper->IsDisplayed (true , &displayed);
224
224
if (status_code != WD_SUCCESS || !displayed) {
225
- response->SetErrorResponse (EELEMENTNOTDISPLAYED ,
226
- " Element is not displayed" );
225
+ response->SetErrorResponse (ERROR_ELEMENT_NOT_INTERACTABLE ,
226
+ " Element cannot be interacted with via the keyboard because it is not displayed" );
227
227
return ;
228
228
}
229
229
230
230
if (!element_wrapper->IsEnabled ()) {
231
- response->SetErrorResponse (EELEMENTNOTENABLED ,
232
- " Element is not enabled" );
231
+ response->SetErrorResponse (ERROR_ELEMENT_NOT_INTERACTABLE ,
232
+ " Element cannot be interacted with via the keyboard because it is not enabled" );
233
233
return ;
234
234
}
235
235
You can’t perform that action at this time.
0 commit comments