我在用Watir http://watir.github.io/对于不需要加载任何图像的数据获取工作。有可能阻止他们吗?
我认为可以是:
profile = Selenium::WebDriver::Chrome::Profile.new
profile['webkit.webprefs.loads_images_automatically'] = false
@browser = Watir::Browser.new :chrome, :profile => profile
See: http://watir.github.io/docs/chrome/ http://watir.github.io/docs/chrome/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)