const response = await myBox.action.ai("Click on the login button"); Copy
const response = await myBox.action.ai("Click on the login button");
const response = await myBox.action.click({ x: 100, y: 100 }); Copy
const response = await myBox.action.click({ x: 100, y: 100 });
const response = await myBox.action.drag( { path: [ { x: 100, y: 100 }, { x: 200, y: 200 }, ], }); Copy
const response = await myBox.action.drag( { path: [ { x: 100, y: 100 }, { x: 200, y: 200 }, ], });
const response = await myBox.action.move({ x: 200, y: 300 }); Copy
const response = await myBox.action.move({ x: 200, y: 300 });
const response = await myBox.action.pressButton({ buttons: ['power']}); Copy
const response = await myBox.action.pressButton({ buttons: ['power']});
const response = await myBox.action.pressKey({ keys: ['enter'] }); Copy
const response = await myBox.action.pressKey({ keys: ['enter'] });
const response = await myBox.action.screenRotation({ angle: 90, direction: 'clockwise' }); Copy
const response = await myBox.action.screenRotation({ angle: 90, direction: 'clockwise' });
Optional
const response = await myBox.action.screenshot();orconst response = await myBox.action.screenshot({ outputFormat: 'base64' }); Copy
const response = await myBox.action.screenshot();orconst response = await myBox.action.screenshot({ outputFormat: 'base64' });
const response = await myBox.action.scroll({ scrollX: 0, scrollY: 100, x: 100, y: 100 }); Copy
const response = await myBox.action.scroll({ scrollX: 0, scrollY: 100, x: 100, y: 100 });
const response = await myBox.action.swipe({ direction: 'up' }); Copy
const response = await myBox.action.swipe({ direction: 'up' });
const response = await myBox.action.touch({ points: [{ start: { x: 0, y: 0 } }] }); Copy
const response = await myBox.action.touch({ points: [{ start: { x: 0, y: 0 } }] });
const response = await myBox.action.type({ text: 'Hello, World!' }); Copy
const response = await myBox.action.type({ text: 'Hello, World!' });
Example