Pywinauto:- How to Automate Chrome. Automating Chrome to Subscribe my Channel. New Video Released.
New Video Released Software Buddy :-
Using Pywinauto to Automate Chrome to Subscribe My Channel
https://www.youtube.com/watch?v=b4pVgB6Z_K0

seen from Netherlands
seen from Mexico

seen from United Kingdom
seen from United Kingdom

seen from United Kingdom

seen from Switzerland

seen from United Kingdom
seen from United States
seen from United States

seen from Australia
seen from United Kingdom

seen from United States

seen from United Kingdom
seen from United States
seen from United Kingdom
seen from China
seen from United States
seen from Russia

seen from United States
seen from Germany
Pywinauto:- How to Automate Chrome. Automating Chrome to Subscribe my Channel. New Video Released.
New Video Released Software Buddy :-
Using Pywinauto to Automate Chrome to Subscribe My Channel
https://www.youtube.com/watch?v=b4pVgB6Z_K0
Windows desktop application testing
Testing a windows desktop application just got easier (at least it did for me). Here’s a no license, no nonsense solution to testing your windows applications. And its all in Python.
Tools we’ll use today,
PyWinAuto http://pywinauto.github.io/
and SWAPY (a tool thats part of PyWinAuto and helps with Object identification ) - https://github.com/pywinauto/SWAPY
and the test runner that I like to use is,
pytest - http://doc.pytest.org/en/latest/
Steps to tackle this task,
Install python and then pywinauto + pytest in your python environment (preferably in your own virtualenv)
Launch your desktop app
Launch SWAPY and look at the list of apps it displays, watch for your app in that list
Click on your app and you should the different objects on your application that are available for you to interact with. Once you click on an item and select the operation you want to perform against it, you’ll see python code being auto generated for you in the tab on the right in SWAPY.
Save that code in a file, save as something.py and you can now run this script from the command line as python something.py and you should the script perform the operation you did. Basically you recorded the operation you performed earlier and are able to replay it with any changes you want to make to it.
Enough talk, lets try a real working example,
Lets try to automate interaction with notepad. Easy enough right?
Launch notepad
Launch SWAPY from the executable you downloaded via https://github.com/pywinauto/SWAPY
If you look closely, you can see that the notepad application already shows up in the ‘Objects browser’ tab. Lets click on it. Lets say I just want to open notepad.exe, hit the file menu and then hit quit.
So I drill down in the object browser menu until I am at the element I want to interact with.
I right click on that element and select the operation I want to perform. Which is click in this case.
After you select ‘Click’ from the right click menu, you can see that the tab named ‘Editor’ gets automatically populated with python code for you to use to perform this action. Cool right??
Here’s the code as seen on SWAPY.
You save this into something.py and run it from the command line to see the Notepad.exe being launched and exited via using the File>Exit menu button. There’s your first automated script for windows!
To see details about how you can write a test with asserts + pytest thrown in, look at this little repo of tests I put up on github - https://github.com/dbhaskaran1/win_logon
Update: Python GUI Automation
2 days in a row, it worked flawlessly! This is awesome. I’m so glad that it’s working the way it’s intended. There was another aspect of my morning routine that I think I’d like to automate, but I don’t think it’s something I could crank out in an afternoon.
What I would need to do is use the PyAutoGUI module along with the OpenPyxl module and probably the PyWinAuto module. What it would need to do is look in a specific Gmail label, look for any and all instances of 4 different types of unread emails (they all have the same/similar subject lines), the toughest part would be programming the program to read from the email itself to grab certain pieces of information (think substrings), and handle certain cases when it looks for something that has shipped but isn’t on the list of ordered units.
I’m still gonna try, but it’s a little daunting.