Quick test of the geckodriver API, showing WebExtension installation and interaction.
Expects geckodriver to be started with:
geckodriver --port 4444
When the geckodriver_test.py
script is run, it will then:
- Create a new session, with the
ui.popup.disable_autohide
preference set. - Install the Update Scanner WebExtension.
- Switch geckodriver to "chrome" context.
- Click the Update Scanner toolbar button, to open the popup.
- Wait for 5 seconds for everything to settle.
- Take a screenshot, and save it to
screenshot.png
. - Close the geckodriver session.
Unfortunately the resulting screenshot doesn't include the popup or sidebar contents.