When running firebug in firefox via the Selenium webdriver, consider that everytime you run your test, firebug acts like its the first time it’s ever been run(since this is a new browser profile).

I was recently shown a way to disable the first-run tab from appearing.

The Ruby code is below. It also shows how to add firebug and firepath to it as well as setting some custom profile/client rules for firefox


profile = Selenium::WebDriver::Firefox::Profile.new
profile["dom.max_script_run_time"] = 500
profile.log_file = ("C:\\Selenium\\firefox.#{Time.now.strftime("%Y-%m-%d.%H%M%S")}.log")
profile.add_extension("C:\\Selenium\\firebug-1.8.2.xpi")
profile["extensions.firebug.currentVersion"] = "9.99"
profile.add_extension("C:\\Selenium\\firepath.xpi")
client = Selenium::WebDriver::Remote::Http::Default.new
client.timeout = 120 # seconds

driver = Selenium::WebDriver.for :firefox, :profile => profile, :http_client=> client

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 
© 2012 Randoms from Blackberry Suffusion theme by Sayontan Sinha