Skip to main content

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

Project description

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

  • 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

Project details


Download files

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

Source Distribution

webguitest-scubbx-0.0.7.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

webguitest_scubbx-0.0.7-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file webguitest-scubbx-0.0.7.tar.gz.

File metadata

  • Download URL: webguitest-scubbx-0.0.7.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for webguitest-scubbx-0.0.7.tar.gz
Algorithm Hash digest
SHA256 8243729bd581bfe50ebadccbb1456012b85061581c1aef027368c4ecc733b373
MD5 a66dbf6b865907ec941c7d799ea08a0d
BLAKE2b-256 29ec9f964ffb3bc8cfb577b3f2aeeaf8726350c5aecaefb270104e8033176dde

See more details on using hashes here.

File details

Details for the file webguitest_scubbx-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: webguitest_scubbx-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for webguitest_scubbx-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 873378c981f83f8b3d4820d5cb549a651f906ed928faa99f855dcdf7b6f19d80
MD5 e7a058ffe8fd40e1bc6e5ba851bed28b
BLAKE2b-256 683beedfa85c54697f2ff09a3e587ca1e5caa1e66e23e303089f128fb6ac5b10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page