Skip to main content

A web user interface test module combining Selenium and pyautogui into one interface

Project description


A web user interface test module for Python 3 combining Selenium and pyautogui into one interface


Ideally you have both, Selenium and the pyautogui module installed. Both are freely available. Selenium is used for base interaction with the FireFox web browser and to interact with HTML elements when they need to be selected by their ''id'', ''name'' or ''CSS path''. Pyautogui is used when a portion of the screen needs to be identified by a screenshot. This is helpful, if you need to find a button that has a random ID.


Selenium is a web testing framework used to auto-perform interactions with websites by selecting elements in the DOM of the HTML. It can be used to control many different browsers. WebGuiTest is using only the FireFox browser.

You need to install the selenium driver for python

pip install selenium

and download the so-called ''geckodriver'' for Selenium to let it interact with an existing installation of the FireFox browser. You can find the current version of the ''geckodriver'' here: You have to unpack it and copy the file to a location where your python installation can find the file (e.g. somewhere in your systems $PATH).


The pyautogui library is simply installed by

pip install pyautogui

On Linux you additionally need to install the Xlib libary with

pip install xlib

and the scrot program for taking screenshots:

apt install scrot



  • added various new methods


  • use pyautogui.moveTo instead of manually combining methods to simulate drag-and-drop


  • added a delay of one second to moveGraphic


  • also retry when selenium element is not yet loaded


  • added "debug" option to methods to allow for surpression of console-output by the testing methods


  • introduced paremeter "waitbetweentries" to let user specify the time to wait between retries when dealing with graphical methods

0.0.9 / 0.0.10

  • added "moveGraphic" method to drag-and-drop

0.0.7 / 0.0.8

  • added "getTextFromName" method to get text content of a named HTML element


  • increased time to wait between tries from 1 seconds to 2 seconds when searching for graphical elements


  • corrected error


  • Added "checkGraphic" function


  • Added "enterValueToGraphic" function


  • Added "enterValue" function


  • First release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for webguitest-scubbx, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size webguitest_scubbx-0.1-py3-none-any.whl (16.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size webguitest-scubbx-0.1.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page