from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://www.baidu.com")
driver.save_screenshot("./files/baidu_img.png")
#.表示当前目录
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://www.baidu.com")
driver.save_screenshot("./files/baidu_img.png")
#.表示当前目录