Skip to main content

Records and automates Winform and WPF applications

Project description

AutoGui is a GUI Automation/Test tool giving the user high level keywords to automate WPF and winform applications.

install using pip install autogui

To use, generate scripts using RecorderSpy.exe in tools folder. Use ctrl-r to start recording, ctrl-e to end recording, and ctrl-w to select a GUI element during recording.

Methods available.
string Read(string selector, int child = 0, double timeout = 5)
setWindow(string window,boolean contains=false,double timeout=5)
Click(string selector, int child = 0,double timeout=5)
SendKey(string keys)
RightClick(string selector,int child=0,double timeout=5)
Append(string inputText,string selector,int child=0,double timeout=5)
Write(string value, string selector, int child = 0, double timeout=5,string mode="overwrite")
Open(string app, boolean setActive=true)
Close(string window="activeWindow")

One can choose to setWindow based on a partial match by setting the contains keyword to true. This can be useful if you don't know the title of your application until runtime.

One can choose to Open and application and set it to the activeWindow. This is by default true, but will fail for certain applications. This is because the initial application will launch a subprocess with a different title. If this fails, just set the flag to false.

example:
from autogui import *
open("notepad")
write("My name is Alex Lundberg","Text Editor")
close()
open("calc")
click("One")
click("Two")
close()

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

autogui-0.0.5.tar.gz (461.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autogui-0.0.5-py2-none-any.whl (466.8 kB view details)

Uploaded Python 2

File details

Details for the file autogui-0.0.5.tar.gz.

File metadata

  • Download URL: autogui-0.0.5.tar.gz
  • Upload date:
  • Size: 461.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.15

File hashes

Hashes for autogui-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c04bc1c0b4aa83e9ac0f8a9cb53769fc022f25cf994f4abedb774570e014a318
MD5 b5118e7e3245c34850263b0c01347793
BLAKE2b-256 acfbd2fcc6ea79f5a263a8e1adf3b9dbbd59aa723d5e145c184ee009ae0ef12c

See more details on using hashes here.

File details

Details for the file autogui-0.0.5-py2-none-any.whl.

File metadata

  • Download URL: autogui-0.0.5-py2-none-any.whl
  • Upload date:
  • Size: 466.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.15

File hashes

Hashes for autogui-0.0.5-py2-none-any.whl
Algorithm Hash digest
SHA256 09d44f7eeb68f244803159d2f339605fd9ce22914efc4d22777d0aba1b711436
MD5 ca1c22b7ce980e596e4325cde09b9686
BLAKE2b-256 bf3234477c66a1e2410279ef4ae54d4591afbac8bad196a412623e1acd0ca6f5

See more details on using hashes here.

Supported by

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