6.1. Exceptions¶ module: selenium.common.exceptions class WebDriverException(msg=None, screen=None, stacktrace=None) base: Exception class ErrorInResponseException(response, msg) base: WebDriverException An error has occurred on the server side. This may happen when communicating with the firefox extension or the remote driver server. class InvalidSwitchToTargetException(msg=None, screen=None, sta