If there is something wrong with my server, or my desired capabilities
are not supported it will just throw and exception.
It would be nice if we can pass an error handler function to the build
metod so we could do something about it or exit nicely.
Also if I have multiple commands like;
driver.click().then(null, errHandler);
....
driver.something().then(null, errHandler);
Is there any way to add a default errHandler that applies for every
command so you dont have to add it to every single command? Maybe in
the builder something like withErrorHandler(errHandlerFunction)
Is there any better to do this?
Thanks!
/david