# 截图截取全屏
driver.get_screenshot_as_file("./all.png")
ele = driver.find_element_by_css_selector(".activity-list")
ele.screenshot("./ele.png")
06-02
5919
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
# 截图截取全屏
driver.get_screenshot_as_file("./all.png")
ele = driver.find_element_by_css_selector(".activity-list")
ele.screenshot("./ele.png")