摘要: Ruby核心库中的Enumerable模块可能听起来很陌生,但实际上大家是应该经常接触到的。这里简单总结一下Enumerable模块的常用方法。The Enumerable mixin provides collection classes with several traversal and searching methods, and with the ability to sort. The class must provide a method each, which yields successive members of the collection. If Enumerable# 阅读全文
posted @ 2011-10-30 18:29 乙醇 阅读(1803) 评论(0) 推荐(2) 编辑
摘要: 下面的代码可以帮助你实现firefox测试运行时代理配置的功能。大概的思路是通过设置profile对象来进行配置。profile = Selenium::WebDriver::Firefox::Profile.new# 新建了url为proxy.org,端口为8080的htpp代理proxy = Selenium::WebDriver::Proxy.new(:http => "proxy.org:8080")profile.proxy = proxy driver = Selenium::WebDriver.for :firefox, :profile => p 阅读全文
posted @ 2011-10-30 13:08 乙醇 阅读(2482) 评论(1) 推荐(0) 编辑

友情链接 虫师的blog  测试教程网  重定向科技  省略