摘要: 有时候我们需要在使用firefox测试时启动firebug,这时候就可以用到下面的代码require 'rubygems'require 'selenium-webdriver' profile = Selenium::WebDriver::Firefox::Profile.newprofile.add_extension 'where/the/extensions/locate/firebug.xpi'dr = Selenium::WebDriver.for :firefox, :profile => profile这段代码首先创建了1个 阅读全文
posted @ 2011-10-28 19:14 乙醇 阅读(2040) 评论(0) 推荐(0) 编辑

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