Skip to main content

Write Test Script

The following elements are required to run the Gamium Client.

When the executable is ready, you can connect Gamium Client to a program that contains Gamium Engine to manipulate the UI, Object.

Install

Requirements

gamium package is available on npm. You can also install it through yarn.

yarn install gamium

Connect with Gamium Engine

import { GamiumClient, NodeGamiumService } from 'gamium';

const gamiumService = new NodeGamiumService('127.0.0.1', 50061);
await gamiumService.connect();
const gamium = new GamiumClient(gamiumService);
const ui = gamium.ui();

Click Buton

Locate the Button Object you want to press, then write a script and click it.

await ui.click(By.path('Object path'));