Clicknium Python package supports automating various types of applications,
such as Web browser, Windows application, Java application and SAP Windows GUI App, etc.
Install Clicknium Python pacakge
pip install clicknium
from clicknium import clicknium as cc, locator, ui
A sample code for web automation with clicknium is as follows.
# open new browser window
chrome_tab = cc.chrome.open("https://www.bing.com")
chrome_tab.find_element(locator.chrome.bing.search_sb_form_q).set_text("clicknium")
chrome_tab.find_element(locator.chrome.bing.svg).click()
# automation on already opened browser
chrome_tab = cc.chrome.attach_by_title_url(url="https://www.bing.com")
chrome_tab.find_element(locator.chrome.bing.search_sb_form_q).set_text("clicknium")
chrome_tab.find_element(locator.chrome.bing.svg).click()
# you can also use the following api directly, clicknium will automatically attach to the browser
ui(locator.chrome.bing.search_sb_form_q).set_text("clicknium")
# for Windows application
ui(locator.notepad.document_15).set_text("clicknium")