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:
Andreas Tolfsen 2017-09-05 16:11:17 +01:00
Родитель ad8630684d
Коммит 843ac74c10
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -62,7 +62,7 @@ class MoveTargetOutOfBoundsException(WebDriverException):
class NoSuchAlertException(WebDriverException):
http_status = 400
http_status = 404
status_code = "no such alert"
@ -72,12 +72,12 @@ class NoSuchElementException(WebDriverException):
class NoSuchFrameException(WebDriverException):
http_status = 400
http_status = 404
status_code = "no such frame"
class NoSuchWindowException(WebDriverException):
http_status = 400
http_status = 404
status_code = "no such window"

Просмотреть файл

@ -15,11 +15,11 @@ errors = {
"invalid session id": 404,
"javascript error": 500,
"move target out of bounds": 500,
"no such alert": 400,
"no such alert": 404,
"no such cookie": 404,
"no such element": 404,
"no such frame": 400,
"no such window": 400,
"no such frame": 404,
"no such window": 404,
"script timeout": 408,
"session not created": 500,
"stale element reference": 400,