Visual automation for the real world — Python wrapper for OculiX
Project description
oculix (Python)
Python wrapper for OculiX — visual automation for the real world.
Install
pip install oculix
Requirements: Python 3.8+, Java 11+ on PATH (Eclipse Temurin or Azul Zulu).
The OculiX engine (~160 MB fat JAR) is downloaded on first use into ~/.oculix/lib/.
Quickstart
from oculix import Screen, App, VNCScreen
screen = Screen()
screen.click("login.png")
screen.type("admin")
screen.click("submit.png")
screen.wait("dashboard.png", 10)
# Open a desktop app
calc = App.open("calc")
screen.click("button_7.png")
# Drive a remote VNC display
vnc = VNCScreen.start("10.0.0.42", 5900, "", 1920, 1080)
vnc.click("logo.png")
vnc.stop()
With pytest
import pytest
from oculix import Screen, App
@pytest.fixture
def calc():
a = App.open("calculator")
yield a
a.close()
def test_addition(calc):
s = Screen()
s.click("button_7.png")
s.click("button_plus.png")
s.click("button_3.png")
s.click("button_equals.png")
assert s.exists("result_10.png")
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oculix-0.1.0.tar.gz
(9.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oculix-0.1.0.tar.gz.
File metadata
- Download URL: oculix-0.1.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbb461acf87b83aa369989373c8ed4161d0d8dd5286531d9cad8d6264ecea16a
|
|
| MD5 |
21e2387c50e2909e642a548fdd71d659
|
|
| BLAKE2b-256 |
08b22db9e454a79e89d8eb085f88ddd89fdaa86fae6d091d880f698ecf9c2c37
|
File details
Details for the file oculix-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oculix-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce9a44ce8fa32bc276a4235ee2f1bfa98607669fb301ae7e458e8b2e509bf76c
|
|
| MD5 |
d488b930cb6def424f2acf270944cc82
|
|
| BLAKE2b-256 |
4ce777aab3323749893ad4c0c61bbf11c652401d716087644c05c9633101aeb2
|