Introduction
Clicknium Python package provides methods to automate various types of applications in Windows, such as Web browsers, Windows Desktop applications, Java applications and SAP Windows GUI app, etc.
- No need to learn XPath or selector knowledge in advance;
- Capture UI locators by just clicking UI controls with VS Code extension;
- Same API for web and desktop applications;
Install Clicknium Visual Studio Code Extension to start automation with Clicknium Python package now.
Examples
from clicknium import clicknium as cc, locator, ui
tab = cc.edge.open("https://www.bing.com/")
tab.find_element(locator.new_store.bing.search_sb_form_q).set_text('clicknium')
tab.find_element(locator.new_store.bing.svg).click()
result_elements = tab.find_elements(locator.new_store.bing.a_search_result)
for elem in result_elements:
print(elem.get_text())
elem.highlight(duration=1)
tab.close()
- Automate 'notepad' on Windows using the same way with web browser:
from clicknium import clicknium as cc, locator, ui
import subprocess
process = subprocess.Popen("notepad")
ui(locator.new_store.notepad.document_15).set_text("clicknium")
ui(locator.new_store.notepad.document_15).clear_text('set-text')
process.kill()
More
Contact
Email: clicknium@clicknium.com