Skip to content
Gary edited this page Nov 8, 2021 · 12 revisions

Welcome to the pyjab wiki!

pyjab is a python implementation tool that enable and support the automation of Java UI application.

It support emulate user interaction with Java UI application by Java Access Bridge API.

This project is created by personal interest, the source code freely available for anyone to use, enjoy, and improve.

And this project is only support for Windows(7/10).

Sources code reference from NVDA.

Here is one of the simplest instructions you can make:

from pyjab.jabdriver import JABDriver

# Create a JABDriver object.
jabdriver = JABDriver("java app window title")

# Find a JABElement by element name
login_btn = jabdriver.find_element_by_name("Login")

# Click a JABElement
login_btn.click()

# Some other examples.
jabdriver.find_element_by_xpath("//push button[@name=contains('OK')]")
jabdriver.wait_until_element_exist(by=By.NAME, value="Dashboard")
login_btn.get_screenshot_as_file("./screenshot.png")

Check Overview and decide if pyjab is the right tool for you.

You should continue on to Getting Started to understand how you can install pyjab and successfully use it as a test automation tool, and scaling simple tests like this to run in large.

Clone this wiki locally