a
    7ñ»j¹  ã                   @   sX  d Z G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG d	d
„ d
eƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZ	G dd„ deƒZ
G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd „ d eƒZG d!d"„ d"eƒZG d#d$„ d$eƒZG d%d&„ d&eƒZG d'd(„ d(eƒZG d)d*„ d*eƒZd+S ),aÁ   SeleniumBase Exceptions
    LinkTextNotFoundException => Called when expected link text is not visible.
    NoSuchFileException => Called when self.assert_downloaded_file(...) fails.
    NoSuchOptionException => Called when select_option_by_*() lacks the option.
    NotConnectedException => Called when Internet is not reachable when needed.
    NotUsingChromeException => Used by Chrome-only methods if not using Chrome.
    NotUsingChromiumException => Used by Chromium-only methods if not Chromium.
    OutOfScopeException => Used by BaseCase methods when setUp() is skipped.
    ProxyConnectionException => Called when the proxy connection failed.
    TextNotVisibleException => Called when the expected text is not visible.
    TimeLimitExceededException => Called when exceeding "--time-limit=SECONDS".
    TimeoutException => Called when some timeout limit has been exceeded.
    VisualException => Called when there's a Visual Diff Assertion Failure.
c                   @   s   e Zd ZdS )ÚLinkTextNotFoundExceptionN©Ú__name__Ú
__module__Ú__qualname__© r   r   úDE:\soccer\ml_env\Lib\site-packages\seleniumbase/common/exceptions.pyr      s   r   c                   @   s   e Zd ZdS )ÚNoSuchFileExceptionNr   r   r   r   r   r      s   r   c                   @   s   e Zd ZdS )ÚNoSuchOptionExceptionNr   r   r   r   r   r	      s   r	   c                   @   s   e Zd ZdS )ÚNotConnectedExceptionNr   r   r   r   r   r
      s   r
   c                   @   s   e Zd ZdS )ÚNotUsingChromeExceptionNr   r   r   r   r   r   !   s   r   c                   @   s   e Zd ZdS )ÚNotUsingChromiumExceptionNr   r   r   r   r   r   %   s   r   c                   @   s   e Zd ZdS )ÚOutOfScopeExceptionNr   r   r   r   r   r   )   s   r   c                   @   s   e Zd ZdS )ÚProxyConnectionExceptionNr   r   r   r   r   r   -   s   r   c                   @   s   e Zd ZdS )ÚTextNotVisibleExceptionNr   r   r   r   r   r   1   s   r   c                   @   s   e Zd ZdS )ÚTimeLimitExceededExceptionNr   r   r   r   r   r   5   s   r   c                   @   s   e Zd ZdS )ÚTimeoutExceptionNr   r   r   r   r   r   9   s   r   c                   @   s   e Zd ZdS )ÚVisualExceptionNr   r   r   r   r   r   =   s   r   c                       s*   e Zd ZdZd‡ fdd„	Zdd„ Z‡  ZS )ÚWebDriverExceptionzBase webdriver exception.Nc                    s    t ƒ  ¡  || _|| _|| _d S )N)ÚsuperÚ__init__ÚmsgÚscreenÚ
stacktrace)Úselfr   r   r   ©Ú	__class__r   r   r   G   s    
zWebDriverException.__init__c                 C   s:   d| j  }| jr|d7 }| jr6d | j¡}|d| 7 }|S )NzMessage: %s
z!Screenshot: available via screen
Ú
zStacktrace:
%s)r   r   r   Újoin)r   Zexception_msgr   r   r   r   Ú__str__M   s    
zWebDriverException.__str__)NNN)r   r   r   Ú__doc__r   r   Ú__classcell__r   r   r   r   r   D   s   r   c                   @   s   e Zd ZdZdS )ÚInvalidSwitchToTargetExceptionz@Thrown when frame or window target to be switched doesn't exist.N©r   r   r   r   r   r   r   r   r!   W   s   r!   c                   @   s   e Zd ZdZdS )ÚNoSuchFrameExceptionz6Thrown when frame target to be switched doesn't exist.Nr"   r   r   r   r   r#   [   s   r#   c                   @   s   e Zd ZdZdS )ÚNoSuchWindowExceptionz7Thrown when window target to be switched doesn't exist.Nr"   r   r   r   r   r$   _   s   r$   c                   @   s   e Zd ZdZdS )ÚNoSuchElementExceptionz'Thrown when element could not be found.Nr"   r   r   r   r   r%   c   s   r%   c                   @   s   e Zd ZdZdS )ÚNoSuchAttributeExceptionz8Thrown when the attribute of element could not be found.Nr"   r   r   r   r   r&   g   s   r&   c                   @   s   e Zd ZdZdS )ÚInvalidElementStateExceptionz\Thrown when a command could not be completed because the element is in
    an invalid state.Nr"   r   r   r   r   r'   k   s   r'   c                   @   s   e Zd ZdZdS )ÚNoAlertPresentExceptionz,Thrown when switching to no presented alert.Nr"   r   r   r   r   r(   p   s   r(   c                   @   s   e Zd ZdZdS )ÚElementNotVisibleExceptionz>Thrown when an element is present in the DOM, but not visible.Nr"   r   r   r   r   r)   t   s   r)   N)r   Ú	Exceptionr   r   r	   r
   r   r   r   r   r   r   r   r   r   r!   r#   r$   r%   r&   r'   r(   r)   r   r   r   r   Ú<module>   s*   