Search code examples
rubyfirefox-addonwatirfirewatirwatir-webdriver

Can Watir interact with Firefox Extensions?


I know that with watir-WebDriver, I can make use of RubyBindings to have the browser load specific profiles or Firefox add-ons when I create a new browser instance. However, can I use Watir to actually use the add-on(s) I open?

The reason I ask is that I am trying to implement a web scraper to navigate to websites and record HTTP interactions. However, since Tamper Data already does the HTTP request/response logging I require, I'd rather use its functionality instead of having to redo it myself.

If this is not possible, I'm wondering if anyone knows a unit tester that will allow me to:

  1. Open a Firefox browser & load Tamper Data
  2. Navigate to specified pages
  3. Click a button on Tamper Data's UI

Solution

  • You can't interact with extensions using bare watir/webdriver as far as i know, need to find a workaround ... Try something like rautomation - https://github.com/jarmo/RAutomation or autoit - http://www.autoitscript.com/site/