티스토리 뷰
Test Automation/Selenium
[이슈] DeprecationWarning: executable_path has been deprecated, please pass in a Service object
Nickoo 2021. 12. 15. 12:01
'Selenium webdriver 로 웹페이지 띄우기' 를 진행하며 chrome webdriver를 실행했는데, 아래와 같은 warning이 뜨는 경우가 있습니다.
DeprecationWarning: executable_path has been deprecated, please pass in a Service object
이런 경우 service 키워드를 사용하면 됩니다.
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
chrome_options = webdriver.ChromeOptions()
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options)
driver.get(url='https://www.google.com/')
driver.quit()
아래는 실행 결과후 console 창에
참고 :
'Test Automation > Selenium' 카테고리의 다른 글
Selenium 에서 가장 많이 사용하는 5가지 기능 (0) | 2021.12.22 |
---|---|
Chrome Options 옵션 (0) | 2021.12.19 |
Selenium webdriver 로 웹페이지 띄우기 (2) (0) | 2021.12.14 |
Selenium webdriver 로 웹페이지 띄우기 (1) (0) | 2021.12.13 |
Selenium 설치방법 (0) | 2021.12.06 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- testautomation
- WIFI
- Windows
- AVD
- 미러링
- Conference
- Selenium
- Software Testing
- 2022
- apk
- EMULATOR
- MacOS
- DesiredCapabilities
- Android
- Appium
- Python
- testuautomation
- podcast
- warning
- QA
- testing
- Quality Assurance
- nodejs
- trend
- AOS
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함