B
     ¸hw  ã               @   sP   d dl Z d dlZd dlmZ G dd„ deƒZG dd„ deƒZG dd„ deƒZdS )	é    N)Úkeys_to_typingc               @   s$   e Zd ZdZejZejdd„ ƒZdS )ÚFileDetectorz]
    Used for identifying whether a sequence of chars represents the path to a
    file.
    c             G   s   d S )N© )ÚselfÚkeysr   r   údC:\Users\sanjo\AppData\Local\Qlobot\Launcher\ext_packages\selenium\webdriver\remote\file_detector.pyÚis_local_file   s    zFileDetector.is_local_fileN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚabcÚABCMetaÚ__metaclass__Úabstractmethodr   r   r   r   r   r      s   r   c               @   s   e Zd ZdZdd„ ZdS )ÚUselessFileDetectorz4
    A file detector that never finds anything.
    c             G   s   d S )Nr   )r   r   r   r   r   r   '   s    z!UselessFileDetector.is_local_fileN)r	   r
   r   r   r   r   r   r   r   r   #   s   r   c               @   s   e Zd ZdZdd„ ZdS )ÚLocalFileDetectorz*
    Detects files on the local disk.
    c             G   sD   d  t|ƒ¡}|sd S ytj |¡r(|S W n tk
r>   Y nX d S )NÚ )Újoinr   ÚosÚpathÚisfileÚ	Exception)r   r   Ú	file_pathr   r   r   r   /   s    zLocalFileDetector.is_local_fileN)r	   r
   r   r   r   r   r   r   r   r   +   s   r   )r   r   Úselenium.webdriver.common.utilsr   Úobjectr   r   r   r   r   r   r   Ú<module>   s
   