selenium

개발빼-엠·2023년 1월 30일

에러를 기록

목록 보기
1/11
post-thumbnail

selenium을 실행해보려던 중 에러가 발생하였다.

1) 첫번째 에러

Error: The ChromeDriver could not be found on the current PATH. 
Please download the latest version of the ChromeDriver from [http://chromedriver.storage.googleapis.com/index.html](http://chromedriver.storage.googleapis.com/index.html) and ensure it can be found on your PATH.

chormedriver.zip파일을 다운로드 받아 압축푼 chormediver exec가 selenium을 실행하는 폴더 안에 존재하지 않아서 난 에러였다.

해결 → selenium을 사용하고자 하는 폴더 안에 다운로드 받은 chormedriver exec가 존재해야한다.

2) 두번째 에러

Error: Server was killed with SIGKILL

selenium 폴더안에 들어온 chromedriver를 눌러보니

'The file is not displayed in the editor because it is either binary or uses an unsupported text encoding. Do you want to open it anyway?' 라는 문장이 있고 Do you want to open it anyway 부분에 커서가 잡혀 클릭한 후, 다시 실행해보니 실행되었다.

제대로 된 해결방법인지 모르겠다...

해결 → chromedriver 파일을 눌러 커서가 잡힌 문장 일부분을 클릭했다.

0개의 댓글