Traceback (most recent call last):
  File "quickstart.py", line 5, in <module>
    from selenium.common.exceptions import NoSuchElementException
ImportError: No module named selenium.common.exceptions

 

이런 에러가 뜨는 경우가 있다.

 

이 에러의 경우 selenium의 모듈에 대한 문제이다.

 

따라서, 아래 명령어를 통해 최신버전으로 재설치하자.

 

python -m pip install -U selenium

 

참고로, root 권한으로 접속하여 하는것을 추천한다.

 

+ Recent posts