스크린 샷 찍는 메소드로, web driver에서 바로 지원
self.driver.save_screenshot("Path/ScreenShot.png")
String으로 path와 file 명을 넣어주면, 스크린샷이 저장 됨.
728x90
'Automation > Selenium' 카테고리의 다른 글
execute_script (0) | 2019.02.18 |
---|---|
pdb.set_trace() (0) | 2019.02.18 |
wait.until (0) | 2019.02.18 |
Selenium (Python 3) (0) | 2019.02.16 |