推荐学习书目
› 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 · Apr 30, 2019 · 2856 views
    This topic created in 2707 days ago, the information mentioned may be changed or developed.
    网上看的的例子,
    中文的也就这个页面例子为主了,其它 blog 什么的,都是转载这个的:
    https://blog.csdn.net/miaomiao_zhang/article/details/86237195
    如果是用 webdriver.Ie(),是否有例子可以看看怎么实现整个页面,需要几个 PageDwon 才能看完的截图?
    3 replies  •  2019-05-06 11:11:23 +08:00
    wszgrcy
        1
    wszgrcy  
       May 1, 2019 via Android
    我知道有截图 api 但是忘了。。。
    qazwsxkevin
        2
    qazwsxkevin  
    OP
       May 2, 2019
    webdriver.ie()折腾不了,结题了。。
    31p7410
        3
    31p7410  
       May 6, 2019
    browser = webdriver.Chrome('D:\ProgramFiles\chromedriver-74.exe')
    browser.save_screenshot('printscreen.png')
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3374 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 04:19 · PVG 12:19 · LAX 21:19 · JFK 00:19
    ♥ Do have faith in what you're doing.