Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle 500 errors as they are valid and may contain more information
- Loading branch information
e31d170
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that the W3C wire protocol is different than the one on Google Code.
In particular, WebDriver server should not return 500 for "no such element", but 404. Is this part of the series of changes migrating to the W3C protocol? If that's the case, then everything within the 4xx or 5xx range should be interpreted as JSON, so the if clause on lines 476 and 477 should be removed completely.
liulk