V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
Anncastle
V2EX  ›  iDev

selenium 用 chrome 能够正常跑通的 case,用 headless 的 chrome 就跑不通?

  •  
  •   Anncastle · Jul 17, 2018 · 6709 views
    This topic created in 2844 days ago, the information mentioned may be changed or developed.
    提示说找不到元素,应该怎么办。sleep 了也没啥用。
    10 replies    2018-07-23 14:49:58 +08:00
    C02TobNClov1Dz56
        1
    C02TobNClov1Dz56  
       Jul 17, 2018
    难道网页是响应式布局,检测到浏览器的窗口大小然后再加载的控件?
    hahastudio
        2
    hahastudio  
       Jul 17, 2018
    截个图不就知道渲染的是不是跟自己想得一样了么
    hell0v2
        3
    hell0v2  
       Jul 17, 2018
    headless 的窗口默认大小不一样,估计你得改下
    SquirrelMAN
        4
    SquirrelMAN  
       Jul 18, 2018
    截图就知道了
    beginor
        5
    beginor  
       Jul 18, 2018 via Android
    请问 headless 默认窗口多大呢?
    Anncastle
        6
    Anncastle  
    OP
       Jul 18, 2018
    @beginor window-size=1200,1100
    Anncastle
        7
    Anncastle  
    OP
       Jul 18, 2018
    @hell0v2 改了窗口大小也没用,而且每次报的出错的元素都不一样。这是为啥,苦逼
    hell0v2
        8
    hell0v2  
       Jul 19, 2018
    还没用的话,就暂时母鸡了。。。坐等你踩坑结果
    Anncastle
        9
    Anncastle  
    OP
       Jul 23, 2018
    @hell0v2 用截屏搞定了 23333
    Anncastle
        10
    Anncastle  
    OP
       Jul 23, 2018
    @hahastudio 鸡汁的小伙伴
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3358 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 65ms · UTC 10:24 · PVG 18:24 · LAX 03:24 · JFK 06:24
    ♥ Do have faith in what you're doing.