<div dir="ltr">Sounds great! I have to leave that on the backburner until Q4 because we have to wrap up our team's core objectives, but consider me game starting April 1st. I've made a task for it: <a href="https://phabricator.wikimedia.org/T93174">https://phabricator.wikimedia.org/T93174</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 6:17 PM, Dan Duvall <span dir="ltr"><<a href="mailto:dduvall@wikimedia.org" target="_blank">dduvall@wikimedia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Mar 18, 2015 at 7:25 AM, Željko Filipin <<a href="mailto:zfilipin@wikimedia.org">zfilipin@wikimedia.org</a>> wrote:<br>
><br>
> On Wed, Mar 18, 2015 at 10:33 AM, Gilles Dubuc <<a href="mailto:gilles@wikimedia.org">gilles@wikimedia.org</a>> wrote:<br>
>><br>
>> How difficult would it be to set that up (profile to run firefox with that addon) for a specific cucumber feature in the UploadWizard test suite?<br>
><br>
><br>
> It should not be hard to do. You do not have to set up a profile, you can just point to the extension that needs to be installed.<br>
<br>
<br>
</span>This may be the perfect opportunity to refactor the UW test suite to<br>
make use of mediawiki_selenium 1.0.x features—it provides a dependency<br>
injection system for easily setting custom Watir/Selenium browser<br>
options.[0][1] It would go something like this:<br>
<br>
Before('@use-some-extension') do<br>
browser_factory(:firefox).bind do |options|<br>
options[:profile].add_extension('/path/to/extension.xpi')<br>
end<br>
end<br>
<br>
Željko/Gilles, maybe we could all pair on the refactoring.<br>
<br>
[0] <a href="https://www.mediawiki.org/wiki/Quality_Assurance/Browser_testing/Environment_abstraction_layer#Customization" target="_blank">https://www.mediawiki.org/wiki/Quality_Assurance/Browser_testing/Environment_abstraction_layer#Customization</a><br>
[1] <a href="https://doc.wikimedia.org/rubygems/mediawiki-selenium/MediawikiSelenium/BrowserFactory/Base.html#bind-instance_method" target="_blank">https://doc.wikimedia.org/rubygems/mediawiki-selenium/MediawikiSelenium/BrowserFactory/Base.html#bind-instance_method</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Dan Duvall<br>
Automation Engineer<br>
Wikimedia Foundation<br>
<br>
_______________________________________________<br>
QA mailing list<br>
<a href="mailto:QA@lists.wikimedia.org">QA@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/qa" target="_blank">https://lists.wikimedia.org/mailman/listinfo/qa</a><br>
</font></span></blockquote></div><br></div>