зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1396831 - Update wdclient and wdspec expected error codes. r=jgraham
MozReview-Commit-ID: IwydIfDWRwC --HG-- extra : rebase_source : 97b67b79feeec142d1ec02f0a74857c772909172
This commit is contained in:
Родитель
ad8630684d
Коммит
843ac74c10
|
@ -62,7 +62,7 @@ class MoveTargetOutOfBoundsException(WebDriverException):
|
||||||
|
|
||||||
|
|
||||||
class NoSuchAlertException(WebDriverException):
|
class NoSuchAlertException(WebDriverException):
|
||||||
http_status = 400
|
http_status = 404
|
||||||
status_code = "no such alert"
|
status_code = "no such alert"
|
||||||
|
|
||||||
|
|
||||||
|
@ -72,12 +72,12 @@ class NoSuchElementException(WebDriverException):
|
||||||
|
|
||||||
|
|
||||||
class NoSuchFrameException(WebDriverException):
|
class NoSuchFrameException(WebDriverException):
|
||||||
http_status = 400
|
http_status = 404
|
||||||
status_code = "no such frame"
|
status_code = "no such frame"
|
||||||
|
|
||||||
|
|
||||||
class NoSuchWindowException(WebDriverException):
|
class NoSuchWindowException(WebDriverException):
|
||||||
http_status = 400
|
http_status = 404
|
||||||
status_code = "no such window"
|
status_code = "no such window"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,11 +15,11 @@ errors = {
|
||||||
"invalid session id": 404,
|
"invalid session id": 404,
|
||||||
"javascript error": 500,
|
"javascript error": 500,
|
||||||
"move target out of bounds": 500,
|
"move target out of bounds": 500,
|
||||||
"no such alert": 400,
|
"no such alert": 404,
|
||||||
"no such cookie": 404,
|
"no such cookie": 404,
|
||||||
"no such element": 404,
|
"no such element": 404,
|
||||||
"no such frame": 400,
|
"no such frame": 404,
|
||||||
"no such window": 400,
|
"no such window": 404,
|
||||||
"script timeout": 408,
|
"script timeout": 408,
|
||||||
"session not created": 500,
|
"session not created": 500,
|
||||||
"stale element reference": 400,
|
"stale element reference": 400,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче