推荐学习书目
› 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
bbxiong
V2EX  ›  Python

请教关于 Python selenium 使用 firefox 指定 profiles 的问题

  •  
  •   bbxiong · Dec 2, 2020 · 2439 views
    This topic created in 2131 days ago, the information mentioned may be changed or developed.

    正常打开浏览器登录以后就不需要滑块答题了,但是 webdriver 启动的 firefox 每次登录都要滑块答题

    profileDir = r"C:\Users\vmware\AppData\Roaming\Mozilla\Firefox\Profiles\jtuws0sz.default-release"
    
    #指定 firefox 浏览器本机默认的 Profiles 目录可以实现记录登录结果,免滑块答题
    webdriver.FirefoxProfile(profileDir)
    
    #但是配置自定义的 profiles 目录却不能保存登录结果,每次都需要滑块答题
    profileDir = "c:\FirefoxPortable\Data\az60if6f.fifa"
    webdriver.FirefoxProfile(profileDir)
    

    请教 slenium 使用 firefox 正确指定自定义 profile 目录的方式.

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2313 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 07:09 · PVG 15:09 · LAX 00:09 · JFK 03:09
    ♥ Do have faith in what you're doing.