updated to selenium 2.42.1, and refactored ErrorCodes to utilize new sel...

...enium methods

Yeah 100 lines of code gone.