Questions tagged [pywinauto]

Windows GUI automation library written in Python

Project home

983 questions
22
votes
4 answers

pytest - Windows fatal exception: code 0x8001010d

I am trying to run a GUI test using pytest and pywinauto. When I run the code normally, it does not complain. However, when I am doing it via pytest, it throws a bunch of errors: Windows fatal exception: code 0x8001010d Note that the code still…
Joe
  • 353
  • 2
  • 6
22
votes
3 answers

How to get a list of the name of every open window?

How do I get a list of the name/text of all opened windows? I tried pywinauto: pywinauto.findwindows.find_windows(title_re="*") but using * as a regex raises an error I tried win32gui: It…
user10385242
  • 407
  • 1
  • 3
  • 10
12
votes
4 answers

Cannot import pywinauto on Windows 10

I installed pywinauto using pip install pywinauto. OS: Windows 10 Python: 3.6.2 When I run python and try to import pywinauto, I get the error: Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32 Type "help",…
John Anderson
  • 35,991
  • 4
  • 13
  • 36
10
votes
3 answers

PyWinAuto still useful?

I've been playing with PyWinAuto today and having fun automating all sorts GUI tests. I was wondering if it is still state of the art or if there might be something else (also free) which does windows rich client automation better.
stimms
  • 42,945
  • 30
  • 96
  • 149
9
votes
4 answers

Pywinauto: unable to bring window to foreground

Working on the Python-powered automation tool. Imagine there is a pool of apps running: APPS_POOL = ['Chrome', 'SomeApp', 'Foo'] The script runs in the loop (every second) and needs to switch randomly between them: # Init App object app =…
0leg
  • 13,464
  • 16
  • 70
  • 94
9
votes
1 answer

Using PyWinAuto to control a currently running application

Using the following code I can find that the currently running window I want to connect is named "Trade Monitor" how do i successfull connect to it? Using the app.start_ method does not work. from pywinauto import…
GoBlue_MathMan
  • 1,048
  • 2
  • 13
  • 20
9
votes
1 answer

Python - Control window with pywinauto while the window is minimized or hidden

What I'm trying to do: I'm trying to create a script in python with pywinauto to automatically install notepad++ in the background (hidden or minimized), notepad++ is just an example since I will edit it to work with other software. Problem: The…
Carlos Barros
  • 319
  • 1
  • 6
  • 11
8
votes
2 answers

How can i find available dialogs ,controls of an application in pywinauto?

I am using pywinauto in windows 7 and I am searching for a way to find the available dialogs and controls of an application.The following is an example: from pywinauto import application import…
IordanouGiannis
  • 4,149
  • 16
  • 65
  • 99
8
votes
3 answers

Press key with pywinauto

Extremely straightforward question. Just want to press a keyboard key. Like enter, using pywin auto. I don't want to press it in the context of any application window. Just a raw keypress of a keyboard key, like a or enter or backspace.
Hangfish
  • 346
  • 2
  • 5
  • 13
7
votes
2 answers

Pywinauto timings waiting 0.5 seconds instead of immediate

I have the following Pywinauto code and timings waiting is 0.5 seconds instead of immediate. How to get itimmediately? To click a button and go to the next message: from pywinauto import application, timings, mouse import time app =…
Moacir
  • 617
  • 4
  • 19
7
votes
1 answer

Pywinauto - Can't connect to office documents using the UIA backend

I'm having an unusual problem lately that when I open some excel/word document and try to connect to it's process using - app = pywinauto.Application(backend="uia").connect(process=19812) It seems not to work, meaning that app.is_process_running()…
Drxxd
  • 1,860
  • 14
  • 34
7
votes
1 answer

Interacting with buttons/macros inside excel automatically

I'm trying to find a way to make a python script that finds all the buttons/checkboxes inside an excel document and interacts with them randomly. I've tried using pywinauto, but it doesn't find the actual objects inside the document (probably…
cydan
  • 615
  • 5
  • 17
7
votes
2 answers

what is the best way to start google chrome and input a web address by pywinauto

I learn from blog (http://technapstar.blogspot.fi/2014/07/automation-with-pywinauto.html) about starting google chrome and input a web address by pywinauto as the following way: Python 3.6.1rc1 (v3.6.1rc1^0:e0fbe5feee4f9c00f09eb9659c2182183036261a,…
L. Ouyang
  • 505
  • 6
  • 14
7
votes
1 answer

pywinauto wait for window to appear and send key-press

I'm trying to make a small function that will wait until a certain window appear and then send a key-press (alt+i), i've been trying to do this with pywinauto but with no success. from what i've read in the documantation i can…
Alex Zel
  • 660
  • 2
  • 12
  • 27
6
votes
1 answer

Pywinauto: How to resize active window

I'm trying to automate some windows tasks and I got a dataframe of all windows opens, and then I added some more coluns in order to make some validations before proceed with the automation. After I activate a window from set_focus() function, I'm…
Guilherme Matheus
  • 573
  • 10
  • 30
1
2 3
65 66