I need to run Selenium tests in Firefox Mobile. Could anybody describe an easy way to do this? My investigation shows that:
binary = FirefoxBinary('geckodriver.exe')
capabilities = {
'browserName': 'firefox',
'firefoxOptions': {
'mobileEmulation': {
'deviceName': 'iPhone X'
}
}
}
browser = webdriver.Firefox(firefox_binary=binary, desired_capabilities=capabilities)
This should work. Havent tested it so try it and let me know.