
    әi                     X    d Z ddlmZ ddlmZ  ed      Zg dZd Zedk(  r e        yy)	u4   Batch C 프로덕션 배너 렌더링 — Playwright    )Path)sync_playwrightz6/home/jay/workspace/output/meta-ads/production/batch-c)
)c41zc41-1200x628.html  t  )r   zc41-1200x1200.htmlr   r   )c44zc44-1200x628.htmlr   r   )r   zc44-1200x1200.htmlr   r   )c45zc45-1200x628.htmlr   r   )r	   zc45-1200x1200.htmlr   r   )c48zc48-1200x628.htmlr   r   )r
   zc48-1200x1200.htmlr   r   )c49zc49-1200x628.htmlr   r   )r   zc49-1200x1200.htmlr   r   c                     t               5 } | j                  j                         }d}g }t        D ]  \  }}}}t        |z  |z  }|j                  d      }	|j                         s|j                  d|        K	 |j                  ||d      }
|
j                  d|j                          d       |
j                  d	       |
j                  t        |	      d
d       |
j                          |	j                         j                   dz  }t#        d| d| d|	j$                   d|dd	       |dz  }
 |j                          d d d        t#        d dt)        t               d       r!t#        d       |D ]  }t#        d|         y y # t&        $ r9}|j                  d| d| d|        t#        d| d| d|        Y d }~d }~ww xY w# 1 sw Y   xY w)Nr   z.pngz	MISSING: )widthheight)viewportzfile://networkidle)
wait_untili  pngF)pathtype	full_pagei   zOK: /u    → z (z.0fz KB)   zERROR: u    — zFAIL: u   
=== 렌더링 완료: u    성공 ===u   오류 목록:z  - )r   chromiumlaunchBANNERSBASEwith_suffixexistsappendnew_pagegotoresolvewait_for_timeout
screenshotstrclosestatst_sizeprintname	Exceptionlen)pbrowsertotalerrorsconcept	html_filer   r   	html_pathpng_pathpagesize_kbes                D/home/jay/workspace/output/meta-ads/production/batch-c/render_all.py
render_allr8      s   		 a**##%18 	>-GYvw2I ,,V4H##%	)56>''5F1S'T		GI$5$5$7#89m	T%%d+S]%P

"--/11D8WIQykx}}oRPS}TXYZ
!	>* 	58 
$UG1S\N+
FG 	AD*	   >y)E!EFwiq5<==>- s7   A0G<B<F8G	G.GGGGG$__main__N)	__doc__pathlibr   playwright.sync_apir   r   r   r8   __name__     r7   <module>r@      s:    :  /DE!H zL r?   