- Selenium 세팅
- 크롬 드라이버 다운로드 (현재 크롬 브라우저의 버전과 드라이버의 버전이 일치하도록!)
- 🔽 드라이버 다운로드 경로 🔽
ChromeDriver - WebDriver for Chrome - Downloads
Current Releases If you are using Chrome version 115 or newer, please consult the Chrome for Testing availability dashboard. This page provides convenient JSON endpoints for specific ChromeDriver version downloading. For older versions of Chrome, please se
sites.google.com

- 크롬 브라우저 버전 확인

2. 최신? 버전 찾으려면 저 노랑색으로 들어가야함(아마도?)

3. 그리고 자신에게 맞는 파일을 다운받으면 된다! 저 URL로 들어가면 바로 다운가능
4. 압축을 풀고 실행파일을 프로젝트 폴더의 상위 폴더에 저장해줌(경로 상관없다고 하는거 같기도 함)
5. pom.xml 파일에 Maven 의존성 추가!
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.9.0</version> // 최신버전
</dependency>
6. 의존성 추가하고 selenium이 정상적으로 추가되었는지 확인

- 프로젝트 우클릭 > Properties > Java Build Path > Libraries > Maven Dependencies에서 종속성 확인
'Java' 카테고리의 다른 글
Spring Batch - 데이터 생성, 즉시로딩/지연로딩 (0) | 2024.04.23 |
---|---|
Spring Batch - 기본사용법 (0) | 2024.04.23 |
Spring Batch - 시작 (0) | 2024.04.23 |
log.Debug (0) | 2024.04.14 |
Java - static, final, record (0) | 2024.04.14 |