This is one of those exceptions that you may never see or, depending upon the driver implementation you use, one you may see all the time. You will find UnsupportedCommandException getting thrown when the WebDriver implementation you are running does not support one of the core WebDriver API commands.
There are quite a few third-party WebDriver bindings, and these bindings are in various states of completeness. Not all third-party projects have managed to implement the entire WebDriver API yet. When a driver binding that you are using does not support a command that is part of the WebDriver API, it will throw UnsupportedCommandException.
If this happens to you, there is really not a lot you can do about it. Your choices are:
- Code around the problem by using a different command
- Switch to a different WebDriver binding
- Write the code required to support...