WebDriver/Marionette/DevNotes: Difference between revisions

Line 66: Line 66:


= How to Enable Marionette without building from Scratch =  
= How to Enable Marionette without building from Scratch =  
If you do now want to build Firefox but would like to use Marionette you can do the following steps to get it working. You will have to have at least Firefox 15 installed to make this work.
If you do now want to build Firefox but would like to use Marionette you can do the following steps to get it working. You will have to have at least Firefox 15 installed to make this work. You will need to have a copy of Mozilla Central local or just get the files from http://hg.mozilla.org/mozilla-central/testing/marionette. I will reference that as $MARIONETTE
 
* navigate to the director where the Firefox binary is. I will reference by $INSTALL e.g /Applications/Firefox/Contents/MacOS/ or /usr/local/lib/firefox/ or c:\Program Files\Firefox
* copy all of the .JS files from $MARIONETTE to $INSTALL/marionette/chrome/content
* copy $MARIONETTE/atoms.js to $INSTALL/chrome/marionette/content
* copy $MARIONETTE/components to $INSTALL/components
* Update $INSTALL/chrome.manifest by adding
    manifest chrome/marionette.manifest
    manifest components/MarionetteComponents.manifest
* create file $INSTALL/chrome/marionette.manifest and add
    content marionette marionette/content/
Confirmed users
753

edits