
     f                    v    d dl mZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 dd	lmZ  G d
 de          ZdS )    )annotations   )keys_to_typing   )KEY)Interaction)KeyInput)PointerInput)
WheelInputc                  L     e Zd Zdd fdZdd	Zdd
ZdddZddZddZ xZ	S )
KeyActionsNsource+KeyInput | PointerInput | WheelInput | NonereturnNonec                    |st          t                    }|| _        t                                          |           d S N)r	   r   r   super__init__)selfr   	__class__s     p/var/www/api.educacionweb.es/myenv/lib/python3.11/site-packages/selenium/webdriver/common/actions/key_actions.pyr   zKeyActions.__init__   s;     	#c]]F         letterstrc                .    |                      d|          S )Ncreate_key_down_key_actionr   r   s     r   key_downzKeyActions.key_down"   s     16:::r   c                .    |                      d|          S )Ncreate_key_upr   r    s     r   key_upzKeyActions.key_up%   s    888r   r   durationintc                .    |                      d|          S )Ncreate_pauser   )r   r%   s     r   pausezKeyActions.pause(   s    999r   text
str | listc                    t          |t                    st          |          }|D ],}|                     |           |                     |           -| S r   )
isinstancelistr   r!   r$   )r   r*   r   s      r   	send_keyszKeyActions.send_keys+   s\    $%% 	(!$''D 	  	 FMM&!!!KKr   actionc                F    t          | j        |          } ||           | S r   )getattrr   )r   r0   r   meths       r   r   zKeyActions._key_action3   s%    t{F++Vr   r   )r   r   r   r   )r   r   r   r   )r   )r%   r&   r   r   )r*   r+   r   r   )r0   r   r   r   )
__name__
__module____qualname__r   r!   r$   r)   r/   r   __classcell__)r   s   @r   r   r      s        ! ! ! ! ! ! !; ; ; ;9 9 9 9: : : : :          r   r   N)
__future__r   utilsr   interactionr   r   	key_inputr	   pointer_inputr
   wheel_inputr   r    r   r   <module>r?      s   " # " " " " " " " " " " "       $ $ $ $ $ $       ' ' ' ' ' ' # # # # # #         r   