For Selenium, how to migrate to using WebDriver for HttpCommandProcessor?

352 views Asked by At

I recently noticed that the HttpCommandProcessor has been marked as deprecated, but there doesn't seem to be anything that replicates its functionality that isn't deprecated.

In particular the WebDriverCommandProcessor does not have a browser start command, and the start(String s) method just throws an UnsupportedOperationException. I am not sure about what Selenium has added to replace these functionalities.

1

There are 1 answers

2
JimEvans On BEST ANSWER

If you're using the HttpCommandProcessor class, I'm assuming you're also using the DefaultSelenium class as your basic Selenium API. That's using Selenium RC. The entirety of Selenium RC is deprecated, and has been replaced by Selenium WebDriver. Yes, WebDriver is a different API than RC, but the guidance from the Selenium project is that this deprecation has been coming for at least the last three years, at the time of this writing.