Running the cert tests on 2.1 fails, because the tests fail to completely uninstall test apps, so the next time the app is installed, we get e.g.: File "cert.py", line 744, in <module> cli() File "cert.py", line 738, in cli _run(args, logger) File "cert.py", line 611, in _run args.version, addr) File "cert.py", line 163, in test_open_remote_window 'RESULTS_URI="http://%s:%s/webapi_results";' % addr}) File "cert.py", line 115, in install_app fxos_appgen.install_app(appname, 'app.zip', script_timeout=120000) File "/home/jgriffin/fxos-certsuite/certsuite_venv/local/lib/python2.7/site-packages/fxos_appgen-0.9-py2.7.egg/fxos_appgen/generator.py", line 325, in install_app raise Exception("%s is already installed" % app_name) Exception: Open Remote Window Test App is already installed On the phone, I see that when we attempt to uninstall an app programatically, we get a prompt that must be physically accepted before the app is uninstalled. If we could automate this prompt, this problem would be solved.
The dialog reads: "Embed Apps Test App (for example) and all of its data will be deleted." "Cancel|Delete"
(In reply to Jonathan Griffin (:jgriffin) from comment #1) > The dialog reads: "Embed Apps Test App (for example) and all of its data > will be deleted." "Cancel|Delete" This is generated at https://github.com/mozilla-b2g/gaia/blob/master/apps/verticalhome/js/app_manager.js#L71
We can press the "Delete" button by doing: m.switch_to_frame() b = m.find_element('css selector', 'gaia-confirm .confirm') b.click()
Fixed with https://github.com/mozilla-b2g/fxos-appgen/commit/2f0c53503c837a1252d229ca91f65704e80854da