Quick and easy project packaging with Clicknium
13 posts tagged with "Python"
View All TagsGenerate reliable locators for web UI testing or data scraping
If you are spending a large chunk of development time finding elements on a web page, such as input, checkbox, submit button, table, and divs. It can be challenging to locate the correct elements, especially when they lack unique attributes, such as id, name, and class names; it is even worse if the attributes are dynamic.
This blog shares ways to generate reliable locators with features provided by Clicknium.
3 Ways of Attaching to Existing Browsers in Web Automation
For partial web automation that part of the work is prepared by human, and part of the work is automated. Attaching to existing browser is then required in this case.
This blog introduces 3 ways of attaching to browser by different automation libraries.
Scrape images from the website
This article describes how to extract numerous related images from a website. It is a basic necessity to download all images from a web page and store them to a local folder. It is also a necessary to preserve the titles of the images so that they may be managed or processed more easily in the future.
Clicknium vs AutoIt
There are several frequently used tools on the market for Windows GUI automation, such as AutoIt, AutoHotKey, Squish, and among others.
Let me introduce a powerful new tool Clicknium that is great for GUI automation for all types of applications, including Windows GUI, Web, SAP, JAVA as well as image recognition.
Clicknium vs Pywinauto
There are much clerical works in desktop client side which are repeatitive tasks, like filling forms, sending messages to multiple groups, manipulating ERP system etc. These operations cost much of employees' time, and automating these client side software to reduce human time in these operations is a good alternative.
There are some options to do the software automation, and I will introduce Pywinauto and Clicknium as below.
Automate upload file dialog in web automation
Sometimes there could be a dialog that needs to be handled when doing web automation, like file upload dialog, print dialog, or save as dialog. The problem is that the libraries that we use to do web automation normally do not support automating these dialogs.
I will introduce two different ways of handling file upload dialog in web automation here.
Automate filling web form with excel data
In the web automation, it is a common scenario that we need to fill data on the web page. Here I would like to use two different ways (Selenium and Clicknium) to automate filling data in web form.
Sample - Scrape all images on website
This is a simple sample to scrape all images from a website by Python. While find_element of Clicknium is for locating a unique UI control, find_elements can be used to locate multiple UI controls with one locator. This example shows a basic usage scenario for this concept, and another blog shows advanced usage in capturing list of elements.
Sample - Customer Onboarding
This is a sample of customer onboarding solution with clicknium web automation.
For one enterprise, customer onboarding has a significant impact on a customer willingness of using your product. You may define the customer onboarding process in your company internally,for example, new customer information adds into CRM(customer relationship management) system. If you can automatically process customer onboarding, the efficiency will be significantly improved. Here we demonstrate one customer onboarding automation solution.
- load the missing customer information from CSV file.
- open CRM system.
- iterate the records in CVS file to register customer information into CRM.