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

请问如何在 selenium webdriver 启动的时候自动进入火狐的响应式界面,并且开启触摸事件?

  •  
  •   gimp · May 7, 2016 via Android · 3477 views
    This topic created in 3709 days ago, the information mentioned may be changed or developed.
    是这样的,我想用 python 和 selenium 抓取一个 app 中的网页,这个网页在火狐开启响应式布局界面并且点击加载触摸事件后才会展示数据

    chrome 的话进入响应式布局就可以显示数据

    我搜了一会,没找到解决办法

    请问关于 selenium 的手机端测试有什么比较不错的资料吗,或者如何才能让 selenium driver 启动的时候就进去响应式布局并且开启触摸事件,谢啦
    3 replies    2016-05-08 11:43:05 +08:00
    sfree2005
        1
    sfree2005  
       May 7, 2016 via Android
    pc10201
        2
    pc10201  
       May 7, 2016
    很简单,可以自定义 firefox 或 chrome 的 user-agent ,改为移动端的就行了
    chunqiuyiyu
        3
    chunqiuyiyu  
       May 8, 2016 via Android
    二楼正解,可以看看这篇文章, http://www.chunqiuyiyu.com/2016/01/learn-splinter.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   866 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 20:29 · PVG 04:29 · LAX 13:29 · JFK 16:29
    ♥ Do have faith in what you're doing.