Hi, devs,
I'd like to propose a tiny API change that should not affect users but would make API more consistent:
Let's introduce NoSuchSessionException and include it into the core WebDriver API.
Current status:
All drivers (except for maybe SafariDriver) throw SessionNotFoundException on an attempt to call any operation after quit(). This exception is located in org.openqa.selenium.remote package for historical reasons.
Why the change:
I want to add information about this exception to the documentation of methods in WebDriver class. But it is not eligible to refer to a class located in org.openqa.selenium.remote package.
Why this change does not affect users:
-- we introduce a new NoSuchSessionException class and describe it in the API documentation
-- we make the existing SessionNotFoundException extends NoSuchSessionException
-- all the existing client code works without modifications
-- new users handle NoSuchSessionException as claimed in the documentation
Along with this we deprecate SessionNotFoundException in the remote package and remove it in Selenium 3.0.
Regards,
--
Alexei Barantsev
Software-Testing.Ru
Selenium2.Ru