11th Jan 2022

How to get started with TagUI

Python, Web

Written By, Hardik Patel

Overview

In this blog, we will see what is the use of TagUI tool and how to use it.

Nowadays web automation is possible through many tools. Some examples are here, Ketalon studio, Selenium, SoapUI etc. Similarly, TagUI is a tool for web automation.

Benefits of automation using TagUI

  • Easy to install
  • Various automation ( OCR optical character recognition, visual automation, keyboard automation, mouse automation, web automation )
  • Cross-platform – available in windows, macOS, Linux
  • Open Source
  • Works in background ( if visual automation is off )
  • Does not require more coding knowledge

Installation

Let’s get started with the installation steps:

You need to have the following things installed in your system:

  1. Python
  2. Pip package management
  3. Java

Use following command to install TagUI (install-tagui) :
pip3/pip install tagui
Now let’s see how to use this thing :

Open your text editor and start writing some code by importing the TagUI library. Here is the sample code.

This code will open the Chrome browser and search for google.com, it will search “yudiz blog” text. Then it will take a screenshot of the search result.

  1. Just copy these few lines of code.
  2. Paste into your text editor and save it my-code.py
  3. Now run it by saved name like this: python/python3 my-code.py

Note: if you are running this task for the first time, it will take around 10 minutes to unzip the package and collect some details from the internet.

Once everything is fine. It will open a new Google Chrome tab ( separate from your installed chrome ).

TagUi_new_tab

TadUi_file
It will search for whatever you wrote in the script and it will take a screenshot of that.

TagUi_screenshot

You need to learn some common functions of TagUI.
Where less coding is required.
Here is the link where you can learn the new functions of TagUI.

https://github.com/tebelorg/RPA-Python

Whatsapp web automation

TagUi_whatsapp_web_automation

Using this tool I wrote a script that can track a particular person on WhatsApp
online/offline/last seen ( every five seconds lap ) and store logs.

Cheers! 🍺

Wait and run this code into your system. _phone_number_Log.txt file will appear on the same path where your script file is saved.

TagUi_change_phone_number

The code I wrote is here! Do not forget to change the phone number.
Note: scan your device to web WhatsApp ( Required ) and Phone number must be saved in your phonebook.
Do not change the tab where the chrome browser is doing automation just minimise that window.

A log file will look like this
TagUi_log

Where to use it?

  • Track a product price online and grab the deal before it goes out of stock. (online bot)
  • Game bot if the task is repetitive. Reach an unlimited score! (game hack)
  • Feel a form of from excel file ( data entry )

Warning: do not use this tool illegally.

It is a tool for exploration, to learn something new and earning money.

Conclusion

I think it is a great tool to explore. I had an idea to spy on someone’s Whatsapp profile because we do not have that much time to check someone’s profile every five seconds. Wherever I searched for this kind of tools or mobile phone applications some websites gave me a trial version, if you want to continue further you have to pay for it. Once I found this tool and did some R&D. By exploring a little more, I came to know that we can make such a thing for free. It depends on you how you can use this tool and what is your idea.

Happy Coding! 💻

Written By,

Wordpress Developer at Yudiz Solutions Pvt. Ltd