V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
qazwsxkevin
V2EX  ›  Python

请教大家, selenium 的 webdriver,想做整个页面的截图, ie()应该怎么做?

  •  
  •   qazwsxkevin · 2019-04-30 23:22:57 +08:00 · 1989 次点击
    这是一个创建于 1794 天前的主题,其中的信息可能已经有所发展或是发生改变。
    网上看的的例子,
    中文的也就这个页面例子为主了,其它 blog 什么的,都是转载这个的:
    https://blog.csdn.net/miaomiao_zhang/article/details/86237195
    如果是用 webdriver.Ie(),是否有例子可以看看怎么实现整个页面,需要几个 PageDwon 才能看完的截图?
    3 条回复    2019-05-06 11:11:23 +08:00
    wszgrcy
        1
    wszgrcy  
       2019-05-01 11:28:41 +08:00 via Android
    我知道有截图 api 但是忘了。。。
    qazwsxkevin
        2
    qazwsxkevin  
    OP
       2019-05-02 22:53:42 +08:00
    webdriver.ie()折腾不了,结题了。。
    31p7410
        3
    31p7410  
       2019-05-06 11:11:23 +08:00
    browser = webdriver.Chrome('D:\ProgramFiles\chromedriver-74.exe')
    browser.save_screenshot('printscreen.png')
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2799 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 14:57 · PVG 22:57 · LAX 07:57 · JFK 10:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.