Questions tagged [pywinauto]

Windows GUI automation library written in Python

Project home

983 questions
6
votes
2 answers

Pywinauto - There are 2 elements that match criteria

this is my first post! I would like to ask you how can i solve this problem. I am trying to automate publish in powerBI. I need to click on correct workspace. Right now i am trying with " My workspace" which is there only once. Please check this…
Carfo
  • 71
  • 1
  • 4
6
votes
3 answers

WindowsContext: OleInitialize() failed: "COM error 0x80010106 RPC_E_CHANGED_MODE (Unknown error 0x0ffffffff80010106)"

I'm programming in python 3.4.4 (32 bits), in windows 8. I'm running an app with PyQt5, the app was working well, but since i installed pywinauto 0.6.4 to set the focus on other app with: other_app =…
JoakoLowRider
  • 71
  • 1
  • 5
6
votes
1 answer

Using pywinauto.top_window() hangs when using it with threads

If I create a thread that all it does is connect to some process and get its top window, then the program hangs. I debugged it a little and it seems to get stuck in comtypes._compointer_base.from_params. This is the whole traceback: ... ->…
cydan
  • 615
  • 5
  • 17
6
votes
1 answer

How can I send text when the window is minimized?

I have tried using python libraries: pyautogui + pwinauto. But to no avail. Once the window is minimized the text is no longer send. code snippet: import pyautogui import…
george
  • 685
  • 2
  • 9
  • 22
5
votes
2 answers

Change the active Window

I'm looking for a way to set the active window. The only solutions I found are outdated. They included modules like pywinauto but its focus() function doesn't work. I need something that quickly switches/makes another window active. I tried the code…
Khloe
  • 157
  • 1
  • 2
  • 6
5
votes
1 answer

ctypes.ArgumentError when using kivy with pywinauto

I have a kivy application that can interact with other windows using the pywinauto module. The application works fine in Linux (where pywinauto isn't used) but in Windows I get the following error, the application won't even start up: C:\Program…
5
votes
1 answer

pywinauto: Iterate through all controls in a window

I'm trying to write a general test script to find errors in new software builds. My idea is to iterate through the controls in the window and interact with each one, logging any errors that are caused and restarting the software if it crashes. I'm…
Aric
  • 319
  • 7
  • 27
5
votes
2 answers

How to access the control identifiers in pywinauto

i am trying to access the control identifiers that gets displayed but i am unable to do so. when a Open window gets popped up only the OK and Cancel button i am able to access.. not able to acccess othe options. Please help
vj85
  • 577
  • 3
  • 7
  • 12
5
votes
2 answers

pywinauto.findwindows.WindowNotFoundError in pywinauto

I am new in pywinauto and have just started learning. I have installed pywinauto with pip in my local 32 bit Windows 7 OS. So, I have this sample code to open an URL in chrome browser. from pywinauto import…
niladri chakrabarty
  • 503
  • 1
  • 7
  • 15
5
votes
2 answers

How to right click on a folder and select from context menu using pywinauto?

I'm writing automation tests for a cloud syncing desktop application. The problem I'm facing is that I cannot select a sub-folder from a window and I cannot select an option from context menu when right-click on a folder. Example: import…
Adrian Rosu
  • 51
  • 1
  • 2
5
votes
2 answers

Checking a checkbox with pywinauto doesn't work

I installed the last pywinauto module from pip. I don't know how to use the Check(), UnCheck(), GetCheckState() methods. This is my very simple code sample. from pywinauto import application # Start the madvr settings application. app =…
5
votes
2 answers

Getting value using pywinauto from text field

How to get result from ms calculator text field, which displays result of any math operations? Swapy (v.0.4.3) shows me that this text field has value of 'Static2', after running so simple script i get empty list. Here my code: from pywinauto import…
5
votes
1 answer

How to perform Click action on Button or Text field by pywinauto

I'm using pywinauto to automation Click on some button on DiffDaff software. My intention are: Step 1: Open DiffDaff software Step 2: Click 'About' button from pywinauto.application import Application app = Application.start("C:\Program…
Little Chicken
  • 215
  • 2
  • 7
  • 19
5
votes
1 answer

Waiting for a application window: pywinauto.timings.WaitUntilPasses in Python

I am trying to use waituntilpasses in pywinauto to give an application time to open a new window. I have used SWAPY to identify the window details. For the sake of testing I manually open the sub-window, so the WaitUntilPasses should see this…
user2811072
  • 61
  • 1
  • 6
5
votes
1 answer

How to send the TAB button using Python In SendKey and PywinAuto Modules

This is the my code which will open the window and send the keys to the window but some screen s are not working from pywinauto.application import * import…
user1575730
  • 105
  • 1
  • 2
  • 10
1
2
3
65 66