
    +g'Q                    V   S SK Jr  SSKJrJr  S SKJr  S SKrS SKrSSK	J
r
  SSK	Jr  SSK	Jr  \ " S	 S
5      5       r\ " S S5      5       r " S S\R                  5      r\ " S S5      5       r\ " S S5      5       rS-S jrS.S jrS.S jrS.S jr    S/S jr    S0S jr S1   S2S jjr        S3                         S4S jjr    S5S jr    S6S jr S1     S7S jjr  S8     S9S jjr    S:S jr   S;       S<S  jjr     S=S! jr!    S>S" jr"    S?S# jr# S1     S@S$ jjr$    SA           SBS% jjr% S1   SCS& jjr&    SDS' jr'      SES( jr(   S;         SFS) jjr)\" S*5      \ " S+ S,5      5       5       r*g)G    )annotations   )event_classT_JSON_DICT)	dataclassN)dom)network)pagec                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rS	r	g
)ScreenOrientation   z
Screen orientation.
strtype_intanglec                V    [        5       nU R                  US'   U R                  US'   U$ )Ntyper   )dictr   r   selfjsons     x/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/selenium/webdriver/common/devtools/v85/emulation.pyto_jsonScreenOrientation.to_json   s(    vzzV

W    c                @    U " [        US   5      [        US   5      S9$ )Nr   r   )r   r   )r   r   clsr   s     r   	from_jsonScreenOrientation.from_json"   s'    d6l#d7m$
 	
r    N
__name__
__module____qualname____firstlineno____doc____annotations__r   classmethodr   __static_attributes__r!   r   r   r   r      s.     J J 
 
r   r   c                  @    \ rS rSr% S\S'   S\S'   S r\S 5       rSrg)	MediaFeature*   r   namevaluec                V    [        5       nU R                  US'   U R                  US'   U$ )Nr.   r/   )r   r.   r/   r   s     r   r   MediaFeature.to_json0   s(    vyyV

Wr   c                @    U " [        US   5      [        US   5      S9$ )Nr.   r/   )r.   r/   r   r   s     r   r   MediaFeature.from_json6   s'    T&\"d7m$
 	
r   r!   N)	r#   r$   r%   r&   r(   r   r)   r   r*   r!   r   r   r,   r,   *   s%    
IJ 
 
r   r,   c                  :    \ rS rSrSrSrSrSrS r\	S 5       r
Srg	)
VirtualTimePolicy>   a+  
advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to
allow the next delayed task (if any) to run; pause: The virtual time base may not advance;
pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending
resource fetches.
advancepausepauseIfNetworkFetchesPendingc                    U R                   $ N)r/   )r   s    r   r   VirtualTimePolicy.to_jsonI   s    zzr   c                    U " U5      $ r<   r!   r   s     r   r   VirtualTimePolicy.from_jsonL   s    4yr   r!   N)r#   r$   r%   r&   r'   ADVANCEPAUSE PAUSE_IF_NETWORK_FETCHES_PENDINGr   r)   r   r*   r!   r   r   r6   r6   >   s2     GE'E$  r   r6   c                  D    \ rS rSr% SrS\S'   S\S'   S r\S 5       rSr	g	)
UserAgentBrandVersionQ   _
Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints
r   brandversionc                V    [        5       nU R                  US'   U R                  US'   U$ )NrG   rH   )r   rG   rH   r   s     r   r   UserAgentBrandVersion.to_jsonZ   s(    v

W,,Yr   c                @    U " [        US   5      [        US   5      S9$ )NrG   rH   )rG   rH   r3   r   s     r   r   UserAgentBrandVersion.from_json`   s'    d7m$Y(
 	
r   r!   Nr"   r!   r   r   rD   rD   Q   s,     JL 
 
r   rD   c                  v    \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S\S	'   S\S
'   S\S'   S r\S 5       rSr	g)UserAgentMetadatah   rF   z"typing.List[UserAgentBrandVersion]brandsr   full_versionplatformplatform_versionarchitecturemodelboolmobilec                2   [        5       nU R                   Vs/ s H  o"R                  5       PM     snUS'   U R                  US'   U R                  US'   U R
                  US'   U R                  US'   U R                  US'   U R                  US'   U$ s  snf )NrP   fullVersionrR   platformVersionrT   rU   rW   )	r   rP   r   rQ   rR   rS   rT   rU   rW   )r   r   is      r   r   UserAgentMetadata.to_json{   s    v/3{{;{!))+{;X"//]==Z"&"7"7#00^

WX <s   Bc                   U " US    Vs/ s H  n[         R                  U5      PM     sn[        US   5      [        US   5      [        US   5      [        US   5      [        US   5      [        US   5      S9$ s  snf )	NrP   rY   rR   rZ   rT   rU   rW   )rP   rQ   rR   rS   rT   rU   rW   )rD   r   r   rV   )r   r   r[   s      r   r   UserAgentMetadata.from_json   s    @DXO1)33A6OT-01j)* &7!89T.12d7m$X'
 	
Os   A<r!   Nr"   r!   r   r   rN   rN   h   sI     /.MJL	 	
 	
r   rN   c               #  6   #    SS0n U v n[        US   5      $ 7f)zR
Tells whether emulation is supported.

:returns: True if emulation is supported.
methodzEmulation.canEmulateresult)rV   cmd_dictr   s     r   can_emulaterd      s,      	(H >DXs   c               #     #    SS0n U v ng7f)z'
Clears the overridden device metrics.
r`   z$Emulation.clearDeviceMetricsOverrideNr!   rb   s     r   clear_device_metrics_overriderf      s     
 	8H >D   
c               #     #    SS0n U v ng7f)z7
Clears the overridden Geolocation Position and Error.
r`   z"Emulation.clearGeolocationOverrideNr!   rb   s     r   clear_geolocation_overrideri      s     
 	6H >Drg   c               #     #    SS0n U v ng7f)zO
Requests that page scale factor is reset to initial values.

**EXPERIMENTAL**
r`   zEmulation.resetPageScaleFactorNr!   rb   s     r   reset_page_scale_factorrk      s      	2H >Drg   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)z
Enables or disables simulating a focused and active page.

**EXPERIMENTAL**

:param enabled: Whether to enable to disable focus emulation.
enabledz"Emulation.setFocusEmulationEnabledr`   paramsNr   )rm   ro   rc   r   s       r   set_focus_emulation_enabledrq      s,      &F96H >D   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)z
Enables CPU throttling to emulate slow CPUs.

**EXPERIMENTAL**

:param rate: Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).
ratezEmulation.setCPUThrottlingRatern   Nrp   )rt   ro   rc   r   s       r   set_cpu_throttling_rateru      s+      &F6N2H >Drr   c              #  ^   #    [        5       nU b  U R                  5       US'   SUS.nUv ng7f)a   
Sets or clears an override of the default background color of the frame. This override is used
if the content does not specify one.

:param color: *(Optional)* RGBA of the default background color. If not specified, any existing override will be cleared.
Ncolorz+Emulation.setDefaultBackgroundColorOverridern   r   r   )rw   ro   rc   r   s       r   %set_default_background_color_overridery      s9      &F--/w?H >Ds   +-c              #     #    [        5       nXS'   XS'   X,S'   X<S'   Ub  XLS'   Ub  X\S'   Ub  XlS'   Ub  X|S	'   Ub  XS
'   U	b  XS'   U
b  U
R                  5       US'   Ub  UR                  5       US'   SUS.nUv ng7f)aw  
Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
query results).

:param width: Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
:param height: Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.
:param device_scale_factor: Overriding device scale factor value. 0 disables the override.
:param mobile: Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more.
:param scale: **(EXPERIMENTAL)** *(Optional)* Scale to apply to resulting view image.
:param screen_width: **(EXPERIMENTAL)** *(Optional)* Overriding screen width value in pixels (minimum 0, maximum 10000000).
:param screen_height: **(EXPERIMENTAL)** *(Optional)* Overriding screen height value in pixels (minimum 0, maximum 10000000).
:param position_x: **(EXPERIMENTAL)** *(Optional)* Overriding view X position on screen in pixels (minimum 0, maximum 10000000).
:param position_y: **(EXPERIMENTAL)** *(Optional)* Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).
:param dont_set_visible_size: **(EXPERIMENTAL)** *(Optional)* Do not set visible view size, rely upon explicit setVisibleSize call.
:param screen_orientation: *(Optional)* Screen orientation override.
:param viewport: **(EXPERIMENTAL)** *(Optional)* If set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions.
widthheightdeviceScaleFactorrW   NscalescreenWidthscreenHeight	positionX	positionYdontSetVisibleSizescreenOrientationviewportz"Emulation.setDeviceMetricsOverridern   rx   )r{   r|   device_scale_factorrW   r~   screen_widthscreen_height
position_x
position_ydont_set_visible_sizescreen_orientationr   ro   rc   r   s                  r   set_device_metrics_overrider      s     @ &F7O8"58w ,} !.~({({('<#$%&8&@&@&B"#%--/z6H >Ds   A;A=c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zP


**EXPERIMENTAL**

:param hidden: Whether scrollbars should be always hidden.
hiddenzEmulation.setScrollbarsHiddenrn   Nrp   )r   ro   rc   r   s       r   set_scrollbars_hiddenr   5  s,      &F81H >Drr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zW


**EXPERIMENTAL**

:param disabled: Whether document.coookie API should be disabled.
disabledz#Emulation.setDocumentCookieDisabledrn   Nrp   )r   ro   rc   r   s       r   set_document_cookie_disabledr   H  s,      &F!:7H >Drr   c              #  H   #    [        5       nXS'   Ub  XS'   SUS.nUv ng7f)z


**EXPERIMENTAL**

:param enabled: Whether touch emulation based on mouse input should be enabled.
:param configuration: *(Optional)* Touch/gesture events configuration. Default: current platform.
rm   Nconfigurationz$Emulation.setEmitTouchEventsForMousern   rp   )rm   r   ro   rc   r   s        r   set_emit_touch_events_for_mouser   [  s:      &F9 "/8H >D    "c              #     #    [        5       nU b  XS'   Ub#  U Vs/ s H  o3R                  5       PM     snUS'   SUS.nUv ngs  snf 7f)z
Emulates the given media type or media feature for CSS media queries.

:param media: *(Optional)* Media type to emulate. Empty string disables the override.
:param features: *(Optional)* Media features to emulate.
NmediafeatureszEmulation.setEmulatedMediarn   rx   )r   r   ro   r[   rc   r   s         r   set_emulated_mediar   r  sY      &Fw3;<8aiik8<z.H >D =s   A	AA	c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zf
Emulates the given vision deficiency.

**EXPERIMENTAL**

:param type_: Vision deficiency to emulate.
r   z%Emulation.setEmulatedVisionDeficiencyrn   Nrp   )r   ro   rc   r   s       r   set_emulated_vision_deficiencyr     s+      &F6N9H >Drr   c              #  \   #    [        5       nU b  XS'   Ub  XS'   Ub  X#S'   SUS.nUv ng7f)z
Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
unavailable.

:param latitude: *(Optional)* Mock latitude
:param longitude: *(Optional)* Mock longitude
:param accuracy: *(Optional)* Mock accuracy
Nlatitude	longitudeaccuracyz Emulation.setGeolocationOverridern   rp   )r   r   r   ro   rc   r   s         r   set_geolocation_overrider     sN      &F%z'{%z4H >Ds   *,c              #  :   #    [        5       nXS'   SUS.nUv ng7f)z
Overrides value returned by the javascript navigator object.

**EXPERIMENTAL**

:param platform: The platform navigator.platform should return.
rR   zEmulation.setNavigatorOverridesrn   Nrp   )rR   ro   rc   r   s       r   set_navigator_overridesr     s,      &F!:3H >Drr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)ze
Sets a specified page scale factor.

**EXPERIMENTAL**

:param page_scale_factor: Page scale factor.
pageScaleFactorzEmulation.setPageScaleFactorrn   Nrp   )page_scale_factorro   rc   r   s       r   set_page_scale_factorr     s-      &F 10H >Drr   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)zp
Switches script execution in the page.

:param value: Whether script execution should be disabled in the page.
r/   z$Emulation.setScriptExecutionDisabledrn   Nrp   )r/   ro   rc   r   s       r   set_script_execution_disabledr     s+      &F7O8H >Drr   c              #  H   #    [        5       nXS'   Ub  XS'   SUS.nUv ng7f)z
Enables touch on platforms which do not support them.

:param enabled: Whether the touch event emulation should be enabled.
:param max_touch_points: *(Optional)* Maximum touch points supported. Defaults to one.
rm   NmaxTouchPointsz"Emulation.setTouchEmulationEnabledrn   rp   )rm   max_touch_pointsro   rc   r   s        r   set_touch_emulation_enabledr     s;      &F9##3 6H >Dr   c              #     #    [        5       nU R                  5       US'   Ub  XS'   Ub  X%S'   Ub  X5S'   Ub  UR                  5       US'   SUS.nUv n[        US   5      $ 7f)	a  
Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets
the current virtual time policy.  Note this supersedes any previous time budget.

**EXPERIMENTAL**

:param policy:
:param budget: *(Optional)* If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent.
:param max_virtual_time_task_starvation_count: *(Optional)* If set this specifies the maximum number of tasks that can be run before virtual is forced forwards to prevent deadlock.
:param wait_for_navigation: *(Optional)* If set the virtual time policy change should be deferred until any frame starts navigating. Note any previous deferred policy change is superseded.
:param initial_virtual_time: *(Optional)* If set, base::Time::Now will be overridden to initially return this value.
:returns: Absolute timestamp at which virtual time was first enabled (up time in milliseconds).
policybudget!maxVirtualTimeTaskStarvationCountwaitForNavigationinitialVirtualTimezEmulation.setVirtualTimePolicyrn   virtualTimeTicksBase)r   r   float)r   r   &max_virtual_time_task_starvation_countwait_for_navigationinitial_virtual_timero   rc   r   s           r   set_virtual_time_policyr     s     ( &F~~'F8!x-96\23&&9"#'';'C'C'E#$2H >D,-..s   A A"c              #  @   #    [        5       nU b  XS'   SUS.nUv ng7f)z
Overrides default host system locale with the specified one.

**EXPERIMENTAL**

:param locale: *(Optional)* ICU style C locale (e.g. "en_US"). If not specified or empty, disables the override and restores default host system locale.
NlocalezEmulation.setLocaleOverridern   rp   )r   ro   rc   r   s       r   set_locale_overrider   (  s2      &F!x/H >Ds   c              #  :   #    [        5       nXS'   SUS.nUv ng7f)z
Overrides default host system timezone with the specified one.

**EXPERIMENTAL**

:param timezone_id: The timezone identifier. If empty, disables the override and restores default host system timezone.

timezoneIdzEmulation.setTimezoneOverridern   Nrp   )timezone_idro   rc   r   s       r   set_timezone_overrider   <  s,      &F&<1H >Drr   c              #  B   #    [        5       nXS'   XS'   SUS.nUv ng7f)a   
Resizes the frame/viewport of the page. Note that this does not affect the frame's container
(e.g. browser window). Can be used to produce screenshots of the specified size. Not supported
on Android.

**EXPERIMENTAL**

:param width: Frame width (DIP).
:param height: Frame height (DIP).
r{   r|   zEmulation.setVisibleSizern   Nrp   )r{   r|   ro   rc   r   s        r   set_visible_sizer   O  s3      &F7O8,H >Ds   c              #     #    [        5       nXS'   Ub  XS'   Ub  X$S'   Ub  UR                  5       US'   SUS.nUv ng7f)ar  
Allows overriding user agent with the given string.

:param user_agent: User agent to use.
:param accept_language: *(Optional)* Browser langugage to emulate.
:param platform: *(Optional)* The platform navigator.platform should return.
:param user_agent_metadata: **(EXPERIMENTAL)** *(Optional)* To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData
	userAgentNacceptLanguagerR   userAgentMetadatazEmulation.setUserAgentOverridern   rx   )
user_agentaccept_languagerR   user_agent_metadataro   rc   r   s          r   set_user_agent_overrider   g  sc      &F$;"#2 %z&&9&A&A&C"#2H >Ds   =?z"Emulation.virtualTimeBudgetExpiredc                  ,    \ rS rSrSr\SS j5       rSrg)VirtualTimeBudgetExpiredi  zr
**EXPERIMENTAL**

Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
c                    U " 5       $ r<   r!   r   s     r   r   "VirtualTimeBudgetExpired.from_json  s     
 	
r   r!   N)r   r   returnr   )r#   r$   r%   r&   r'   r)   r   r*   r!   r   r   r   r     s     
 
r   r   )r   z0typing.Generator[T_JSON_DICT, T_JSON_DICT, bool])r   0typing.Generator[T_JSON_DICT, T_JSON_DICT, None])rm   rV   r   r   )rt   r   r   r   r<   )rw   ztyping.Optional[dom.RGBA]r   r   )NNNNNNNN)r{   r   r|   r   r   r   rW   rV   r~   typing.Optional[float]r   typing.Optional[int]r   r   r   r   r   r   r   typing.Optional[bool]r   z"typing.Optional[ScreenOrientation]r   ztyping.Optional[page.Viewport]r   r   )r   rV   r   r   )r   rV   r   r   )rm   rV   r   typing.Optional[str]r   r   )NN)r   r   r   z*typing.Optional[typing.List[MediaFeature]]r   r   )r   r   r   r   )NNN)r   r   r   r   r   r   r   r   )rR   r   r   r   )r   r   r   r   )r/   rV   r   r   )rm   rV   r   r   r   r   )NNNN)r   r6   r   r   r   r   r   r   r   z'typing.Optional[network.TimeSinceEpoch]r   z1typing.Generator[T_JSON_DICT, T_JSON_DICT, float])r   r   r   r   )r   r   r   r   )r{   r   r|   r   r   r   )
r   r   r   r   rR   r   r   z"typing.Optional[UserAgentMetadata]r   r   )+
__future__r   utilr   r   dataclassesr   enumtyping r   r	   r
   r   r,   Enumr6   rD   rN   rd   rf   ri   rk   rq   ru   ry   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r!   r   r   <module>r      s   # * !      
 
 
0 
 
 
&		 & 
 
 
, '
 '
 '
T
 		7&	7( ,0(	70 )--1.2+/+/7;AE37999 #9 	9
 &9 +9 ,9 )9 )9  59 ?9 19 
89x	7&	7* /3+ 
80 '+?C#< 
8,	7( ,0,0+/() ) 
8	6	7& 	7&	7& 26. 
8. *.GK59HL#/!#/&#/ 1E#/ 3	#/
 F#/ 
9#/N (,$	7(	7& 
84 15)-BF	- ' @	
 
8: 12

 
  3
r   