<s> """<STR_LIT>""" <EOL> class WebDriverException ( Exception ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , msg = None , screen = None , stacktrace = None ) : <EOL> self . msg = msg <EOL> self . screen = screen <EOL> self . stacktrace = stacktrace <EOL> def __str__ ( self ) : <EOL> exception_msg = "<STR_LIT>" % self . msg <EOL> if self . screen is not None : <EOL> exception_msg += "<STR_LIT>" <EOL> if self . stacktrace is not None : <EOL> stacktrace = "<STR_LIT:\n>" . join ( self . stacktrace ) <EOL> exception_msg += "<STR_LIT>" % stacktrace <EOL> return exception_msg <EOL> class ErrorInResponseException ( WebDriverException ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , response , msg ) : <EOL> WebDriverException . __init__ ( self , msg ) <EOL> self . response = response <EOL> class InvalidSwitchToTargetException ( WebDriverException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class NoSuchFrameException ( InvalidSwitchToTargetException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class NoSuchWindowException ( InvalidSwitchToTargetException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class NoSuchElementException ( WebDriverException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class NoSuchAttributeException ( WebDriverException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class StaleElementReferenceException ( WebDriverException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class InvalidElementStateException ( WebDriverException ) : <EOL> """<STR_LIT:U+0020>""" <EOL> pass <EOL> class UnexpectedAlertPresentException ( WebDriverException ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , msg = None , screen = None , stacktrace = None , alert_text = None ) : <EOL> super ( UnexpectedAlertPresentException , self ) . __init__ ( msg , screen , stacktrace ) <EOL> self . alert_text = alert_text <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % ( self . alert_text , str ( super ( WebDriverException , self ) ) ) <EOL> class NoAlertPresentException ( WebDriverException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class ElementNotVisibleException ( InvalidElementStateException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class ElementNotSelectableException ( InvalidElementStateException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class InvalidCookieDomainException ( WebDriverException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class UnableToSetCookieException ( WebDriverException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class RemoteDriverServerException ( WebDriverException ) : <EOL> """<STR_LIT:U+0020>""" <EOL> pass <EOL> class TimeoutException ( WebDriverException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class MoveTargetOutOfBoundsException ( WebDriverException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class UnexpectedTagNameException ( WebDriverException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class InvalidSelectorException ( NoSuchElementException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class ImeNotAvailableException ( WebDriverException ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class ImeActivationFailedException ( WebDriverException ) : <EOL> """<STR_LIT>""" <EOL> pass </s>
