Camme/webdriverjs — pull request #31 by tomterl (2012-06-14 10:37:46+00:00)
Title: Don't access undefined errorCode

errorCodes[result.status] is checked, but nevertheless accessed if undefined/false.
This patch adds a generic Unknown state with id "-1" to prevent test deaths.

The unknown state in my case was 34, Element cannot be scrolled into view.

Of course I should add the specific code also, but I'm not sure about the wording, and what the missing "33" would be - I can add something and issue another pull request, my first priority was to stop the dying processes.