
    >i9                        d dl mZ d dlmZmZ d dlmZ d dlmZ d dl	m
Z
mZ d dlmZmZmZmZmZmZmZmZmZ d dlmZ  G d d	ee      Z G d
 de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z  G d de      Z! G d de      Z" G d de      Z# G d de      Z$ G d  d!e      Z% G d" d#e      Z& G d$ d%e      Z' G d& d'e      Z( G d( d)e      Z) G d* d+e      Z* G d, d-e      Z+ G d. d/e      Z, G d0 d1e      Z- G d2 d3e      Z. G d4 d5e      Z/ G d6 d7e      Z0 G d8 d9e      Z1 G d: d;e      Z2 G d< d=e      Z3 G d> d?e      Z4 G d@ dAe      Z5ee   Z6ee   Z7ee   Z8ee   Z9ee   Z:ee   Z;ee    Z<ee!   Z=ee"   Z>ee#   Z?ee$   Z@ee%   ZAee&   ZBee'   ZCee(   ZDee)   ZEee*   ZFee+   ZGee,   ZHee-   ZIee.   ZJee/   ZKee0   ZLee1   ZMee2   ZNee3   ZOee4   ZPee5   ZQyB)C    )Enum)NotRequired	TypedDict)CDPEvent)BackendNodeId)LoaderIdMonotonicTime)	&BackForwardCacheNotRestoredExplanation*BackForwardCacheNotRestoredExplanationTreeClientNavigationDispositionClientNavigationReason
DialogTypeFrameFrameIdNavigationTypeScreencastFrameMetadata)
StackTracec                       e Zd ZdZdZ	 dZ	 dZ	 dZ	 dZ	 dZ		 dZ
	 d	Z	 d
Z	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZ	 dZdZy)	PageEventaJ  
    Events from the Page domain of the Chrome DevTools Protocol.

    This enumeration contains the names of Page-related events that can be
    received from the Chrome DevTools Protocol. These events provide information
    about page lifecycle, frame navigation, JavaScript dialogs, and other
    page-related activities.
    zPage.domContentEventFiredzPage.fileChooserOpenedzPage.frameAttachedzPage.frameDetachedzPage.frameNavigatedzPage.interstitialHiddenzPage.interstitialShownzPage.javascriptDialogClosedzPage.javascriptDialogOpeningzPage.lifecycleEventzPage.loadEventFiredzPage.windowOpenzPage.backForwardCacheNotUsedzPage.compilationCacheProducedzPage.documentOpenedzPage.frameRequestedNavigationzPage.frameResizedzPage.frameStartedLoadingzPage.frameStartedNavigatingzPage.frameStoppedLoadingzPage.frameSubtreeWillBeDetachedzPage.navigatedWithinDocumentzPage.screencastFramez Page.screencastVisibilityChangedzPage.downloadWillBeginzPage.downloadProgressN)__name__
__module____qualname____doc__DOM_CONTENT_EVENT_FIREDFILE_CHOOSER_OPENEDFRAME_ATTACHEDFRAME_DETACHEDFRAME_NAVIGATEDINTERSTITIAL_HIDDENINTERSTITIAL_SHOWNJAVASCRIPT_DIALOG_CLOSEDJAVASCRIPT_DIALOG_OPENINGLIFECYCLE_EVENTLOAD_EVENT_FIREDWINDOW_OPENBACK_FORWARD_CACHE_NOT_USEDCOMPILATION_CACHE_PRODUCEDDOCUMENT_OPENEDFRAME_REQUESTED_NAVIGATIONFRAME_RESIZEDFRAME_STARTED_LOADINGFRAME_STARTED_NAVIGATINGFRAME_STOPPED_LOADINGFRAME_SUBTREE_WILL_BE_DETACHEDNAVIGATED_WITHIN_DOCUMENTSCREENCAST_FRAMESCREENCAST_VISIBILITY_CHANGEDDOWNLOAD_WILL_BEGINDOWNLOAD_PROGRESS     a/var/www/python/tenders/Scrapper/venv/lib/python3.12/site-packages/pydoll/protocol/page/events.pyr   r      sK    : 3 *N *N ,O 4 2  = !?  ,O
 - $K	 #A "A ,O "A	 (M 7  =& 7 &G" !? . %G! 3/r5   r   c                       e Zd ZU eed<   y)DomContentEventFiredEventParams	timestampNr   r   r   r	   __annotations__r4   r5   r6   r8   r8         r5   r8   c                   2    e Zd ZU eed<   eed<   ee   ed<   y)FileChooserOpenedEventParamsframeIdmodebackendNodeIdN)r   r   r   r   r;   strr   r   r4   r5   r6   r>   r>     s    
I}--r5   r>   c                   2    e Zd ZU eed<   eed<   ee   ed<   y)FrameAttachedEventParamsr?   parentFrameIdstackN)r   r   r   r   r;   r   r   r4   r5   r6   rD   rD   "  s    z""r5   rD   c                       e Zd ZU eed<   y)*FrameClearedScheduledNavigationEventParamsr?   Nr   r   r   r   r;   r4   r5   r6   rH   rH   (      r5   rH   c                   "    e Zd ZU eed<   eed<   y)FrameDetachedEventParamsr?   reasonNr   r   r   r   r;   rB   r4   r5   r6   rL   rL   ,  s    Kr5   rL   c                       e Zd ZU eed<   y)%FrameSubtreeWillBeDetachedEventParamsr?   NrI   r4   r5   r6   rP   rP   1  rJ   r5   rP   c                   "    e Zd ZU eed<   eed<   y)FrameNavigatedEventParamsframetypeN)r   r   r   r   r;   r   r4   r5   r6   rR   rR   5  s    L
r5   rR   c                       e Zd ZU eed<   y)DocumentOpenedEventParamsrS   N)r   r   r   r   r;   r4   r5   r6   rV   rV   :  s    Lr5   rV   c                       e Zd Zy)FrameResizedEventParamsNr   r   r   r4   r5   r6   rX   rX   >      r5   rX   c                   6    e Zd ZU eed<   eed<   eed<   eed<   y)!FrameStartedNavigatingEventParamsr?   urlloaderIdnavigationTypeN)r   r   r   r   r;   rB   r   r4   r5   r6   r\   r\   B  s    	Hr5   r\   c                   6    e Zd ZU eed<   eed<   eed<   eed<   y)#FrameRequestedNavigationEventParamsr?   rM   r]   dispositionN)r   r   r   r   r;   r   rB   r   r4   r5   r6   ra   ra   I  s    ""	H,,r5   ra   c                   6    e Zd ZU eed<   eed<   eed<   eed<   y)#FrameScheduledNavigationEventParamsr?   delayrM   r]   N)r   r   r   r   r;   floatr   rB   r4   r5   r6   rd   rd   P  s    L""	Hr5   rd   c                       e Zd ZU eed<   y)FrameStartedLoadingEventParamsr?   NrI   r4   r5   r6   rh   rh   W  rJ   r5   rh   c                       e Zd ZU eed<   y)FrameStoppedLoadingEventParamsr?   NrI   r4   r5   r6   rj   rj   [  rJ   r5   rj   c                   6    e Zd ZU eed<   eed<   eed<   eed<   y)DownloadWillBeginEventParamsr?   guidr]   suggestedFilenameNrN   r4   r5   r6   rl   rl   _  s    
I	Hr5   rl   c                   6    e Zd ZU eed<   eed<   eed<   eed<   y)DownloadProgressEventParamsrm   
totalBytesreceivedBytesstateN)r   r   r   rB   r;   rf   r4   r5   r6   rp   rp   f  s    
IJr5   rp   c                       e Zd Zy)InterstitialHiddenEventParamsNrY   r4   r5   r6   ru   ru   m  rZ   r5   ru   c                       e Zd Zy)InterstitialShownEventParamsNrY   r4   r5   r6   rw   rw   q  rZ   r5   rw   c                   ,    e Zd ZU eed<   eed<   eed<   y)!JavascriptDialogClosedEventParamsr?   result	userInputN)r   r   r   r   r;   boolrB   r4   r5   r6   ry   ry   u  s    LNr5   ry   c                   P    e Zd ZU eed<   eed<   eed<   eed<   eed<   ee   ed<   y)"JavascriptDialogOpeningEventParamsr]   r?   messagerT   hasBrowserHandlerdefaultPromptN)	r   r   r   rB   r;   r   r   r|   r   r4   r5   r6   r~   r~   {  s)    	HL
s##r5   r~   c                   6    e Zd ZU eed<   eed<   eed<   eed<   y)LifecycleEventEventParamsr?   r^   namer9   N)r   r   r   r   r;   r   rB   r	   r4   r5   r6   r   r     s    
Ir5   r   c                   B    e Zd ZU eed<   eed<   ee   ed<   ee	   ed<   y)"BackForwardCacheNotUsedEventParamsr^   r?   notRestoredExplanationsnotRestoredExplanationsTreeN)
r   r   r   r   r;   r   listr
   r   r   r4   r5   r6   r   r     s&    !"HII!,-W!XXr5   r   c                       e Zd ZU eed<   y)LoadEventFiredEventParamsr9   Nr:   r4   r5   r6   r   r     r<   r5   r   c                   ,    e Zd ZU eed<   eed<   eed<   y)"NavigatedWithinDocumentEventParamsr?   r]   r_   NrN   r4   r5   r6   r   r     s    	Hr5   r   c                   ,    e Zd ZU eed<   eed<   eed<   y)ScreencastFrameEventParamsdatametadata	sessionIdN)r   r   r   rB   r;   r   intr4   r5   r6   r   r     s    
I%%Nr5   r   c                       e Zd ZU eed<   y)&ScreencastVisibilityChangedEventParamsvisibleN)r   r   r   r|   r;   r4   r5   r6   r   r     s    Mr5   r   c                   <    e Zd ZU eed<   eed<   ee   ed<   eed<   y)WindowOpenEventParamsr]   
windowNamewindowFeaturesuserGestureN)r   r   r   rB   r;   r   r|   r4   r5   r6   r   r     s    	HOIr5   r   c                   "    e Zd ZU eed<   eed<   y)#CompilationCacheProducedEventParamsr]   r   N)r   r   r   rB   r;   r4   r5   r6   r   r     s    	H
Ir5   r   N)Renumr   typing_extensionsr   r   pydoll.protocol.baser   pydoll.protocol.dom.typesr   pydoll.protocol.network.typesr   r	   pydoll.protocol.page.typesr
   r   r   r   r   r   r   r   r   pydoll.protocol.runtime.typesr   rB   r   r8   r>   rD   rH   rL   rP   rR   rV   rX   r\   ra   rd   rh   rj   rl   rp   ru   rw   ry   r~   r   r   r   r   r   r   r   r   DomContentEventFiredEventFileChooserOpenedEventFrameAttachedEvent$FrameClearedScheduledNavigationEventFrameDetachedEventFrameSubtreeWillBeDetachedEventFrameNavigatedEventDocumentOpenedEventFrameResizedEventFrameStartedNavigatingEventFrameRequestedNavigationEventFrameScheduledNavigationEventFrameStartedLoadingEventFrameStoppedLoadingEventDownloadWillBeginEventDownloadProgressEventInterstitialHiddenEventInterstitialShownEventJavascriptDialogClosedEventJavascriptDialogOpeningEventLifecycleEventEventBackForwardCacheNotUsedEventLoadEventFiredEventNavigatedWithinDocumentEventScreencastFrameEvent ScreencastVisibilityChangedEventWindowOpenEventCompilationCacheProducedEventr4   r5   r6   <module>r      s    4 ) 3 A
 
 
 50T 0Di .9 .#y # y 
I 	 
	 	i 		 -) -) Y Y 9 ) 	I 		9 		 $ $	 Y Y	   Y I ) 
 %%DE !">? 67 '/0Z'[ $67 "*+P"Q 89 89 45 &'HI  ()L M  ()L M #$BC #$BC !">?  !<= "#@A !">? &'HI '(JK 89 '(JK 89 '(JK  :; #+,R#S  01 ()L M r5   