Skip to main content

WebGuiTest

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

Requirements

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

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: https://github.com/mozilla/geckodriver/releases 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).

pyautogui

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

Changelog

0.0.7 / 0.0.8

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

0.0.6

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

0.0.5

  • corrected error

0.0.4

  • Added "checkGraphic" function

0.0.3

  • Added "enterValueToGraphic" function

0.0.2

  • Added "enterValue" function

0.0.1

  • First release

Release files for webguitest-scubbx 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for webguitest-scubbx 0.0.8
File Size Uploaded
webguitest-scubbx-0.0.8.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for webguitest-scubbx 0.0.8
File Interpreter ABI Platform
webguitest_scubbx-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 15.1 kB

Release files / webguitest-scubbx-0.0.8.tar.gz

Download URL webguitest-scubbx-0.0.8.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
83d5c1b439c5ab2bf73d6867a7a4e942ffb3b6e575868ee72ddccae4d27a4a97
BLAKE2b-256 checksum
How to use checksums
b2886ffdd45f9304e0afafa3154325a2e7d2e43b920cdb205b419edd6339eb90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

Release files / webguitest_scubbx-0.0.8-py3-none-any.whl

Download URL webguitest_scubbx-0.0.8-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6a3962179c95e6598aed2604fc51b0a6c2d2b0441fd4ee83f248ac97bea70a3
BLAKE2b-256 checksum
How to use checksums
2912fab5ed92568f31449038a6b392a5b7a55b0cee3c900b4f576c684de4e8a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

Release history Release notifications | RSS feed

0.1

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.9

2 release files

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page