title: How to automate Firefox Mobile with Selenium?
body: <p>I need to run Selenium tests in Firefox Mobile. Could anybody describe an easy way to do this? My investigation shows that:</p>
  
  <ol>
  <li>Firefox Mobile is not supported in <a href="http://github.com/appium/appium" rel="noreferrer">Appium</a> (<a href="https://github.com/appium/appium/issues/6438" rel="noreferrer">one</a>, <a href="https://github.com/appium/appium/issues/8651" rel="noreferrer">two</a>).</li>
  <li>Firefox Desktop has built-in <a href="https://developer.mozilla.org/en-US/docs/Tools/Responsive_Design_Mode" rel="noreferrer">Responsive Design Mode</a> like shown on the picture:<a href="https://i.stack.imgur.com/nWUjr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nWUjr.png" alt="responsive-ui-mode"></a></li>
  <li>It seems that <a href="https://dxr.mozilla.org/mozilla-central/source/testing/geckodriver" rel="noreferrer">Geckodriver</a> does not support Firefox mobile. Compared to <a href="https://chromium.googlesource.com/chromium/src/+/master/chrome/test/chromedriver/" rel="noreferrer">Chromedriver</a> Geckodriver has no mobile-specific code.</li>
  <li>There <a href="https://github.com/mozilla/geckodriver/issues/817" rel="noreferrer">is</a> (or there was) some way to open mobile emulation using Firefox prefs. It works by switching Firefox from CONTENT to CHROME context using Marionette API calls and then pressing keyboard shortcut with Selenium.</li>
  </ol>
  
  <p>Did not manage to succeed with any of these solutions. Any idea how to automate Firefox Mobile?</p>