5P by xguru 2022-02-13 | favorite | 댓글 1개

기존 Puppeteer 스크립트를 Playwright 로 변환
- import 변환
- 기본 메소드들을 새 API로 변환 ( setViewport → setViewportSize )
- 브라우저 컨텍스트 명시적으로 생성
- explicit waiting 제거
- 쿠키 관련 명령 변환

현재 미지원 기능
- 파일 업로드/다운로드
- Request/Response Interception
- Multiple contexts / tab

Puppeteer 쓰시다가 Playwright 넘어간 분들은 만족하고 계시더군요.
기존에 작성한 스크립트가 많다면 이런 도구가 도움 될 것 같습니다.

- microsoft/playwright 릴리즈 - 원격 브라우저 컨트롤 https://news.hada.io/topic?id=1374
- Playwright 1.4.0 공개 https://news.hada.io/topic?id=2828
- Headless Dev - Puppeteer & Playwright 지식 창고 https://news.hada.io/topic?id=2685