Skip to content

Commit d5ce210

Browse files
committed
Updating IE driver HTTP response code for stale elements
1 parent 8e91af9 commit d5ce210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/webdriver-server/response.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,15 @@ int Response::GetHttpResponseCode(void) {
120120
this->error_ == ERROR_INVALID_COOKIE_DOMAIN ||
121121
this->error_ == ERROR_INVALID_COORDINATES ||
122122
this->error_ == ERROR_INVALID_ELEMENT_STATE ||
123-
this->error_ == ERROR_INVALID_SELECTOR ||
124-
this->error_ == ERROR_STALE_ELEMENT_REFERENCE) {
123+
this->error_ == ERROR_INVALID_SELECTOR) {
125124
response_code = 400;
126125
} else if (this->error_ == ERROR_INVALID_SESSION_ID ||
127126
this->error_ == ERROR_NO_SUCH_COOKIE ||
128127
this->error_ == ERROR_NO_SUCH_ALERT ||
129128
this->error_ == ERROR_NO_SUCH_ELEMENT ||
130129
this->error_ == ERROR_NO_SUCH_FRAME ||
131130
this->error_ == ERROR_NO_SUCH_WINDOW ||
131+
this->error_ == ERROR_STALE_ELEMENT_REFERENCE ||
132132
this->error_ == ERROR_UNKNOWN_COMMAND) {
133133
response_code = 404;
134134
} else if (this->error_ == ERROR_SCRIPT_TIMEOUT ||

0 commit comments

Comments
 (0)