摘要:
有时候我们需要在使用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
乙醇
阅读(2052)
评论(0)
推荐(0)

浙公网安备 33010602011771号