Skip to content

sneakypete81/geckodriver-test

Repository files navigation

Geckodriver Test

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:

  1. Create a new session, with the ui.popup.disable_autohide preference set.
  2. Install the Update Scanner WebExtension.
  3. Switch geckodriver to "chrome" context.
  4. Click the Update Scanner toolbar button, to open the popup.
  5. Wait for 5 seconds for everything to settle.
  6. Take a screenshot, and save it to screenshot.png.
  7. Close the geckodriver session.

Unfortunately the resulting screenshot doesn't include the popup or sidebar contents.

About

Example usage of the geckodriver API in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages