Automation/Selenium

save_screenshot

c29130811 2019. 2. 18. 12:45

스크린 샷 찍는 메소드로, web driver에서 바로 지원


self.driver.save_screenshot("Path/ScreenShot.png")

String으로 path와 file 명을 넣어주면, 스크린샷이 저장 됨.

728x90