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.getSetting(); Copy
const response = await myBox.action.getSetting();
const response = await myBox.action.longPress({ x: 100, y: 100 }); Copy
const response = await myBox.action.longPress({ x: 100, y: 100 });
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.resetSetting(); Copy
const response = await myBox.action.resetSetting();
const response = await myBox.action.screenLayout(); Copy
const response = await myBox.action.screenLayout();
please use ActionOperator.screenRecordingStart instead.
const response = await myBox.action.screenRecordingStart(); Copy
const response = await myBox.action.screenRecordingStart();
const response = await myBox.action.screenRecordingStop(); Copy
const response = await myBox.action.screenRecordingStop();
const response = await myBox.action.screenRotation({ orientation: 'landscapeLeft' }); Copy
const response = await myBox.action.screenRotation({ orientation: 'landscapeLeft' });
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({ direction: 'up' });const response = await myBox.action.scroll({ scrollX: 0, scrollY: 100, x: 100, y: 100 }); Copy
const response = await myBox.action.scroll({ direction: 'up' });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.tap({ x: 100, y: 100 }); Copy
const response = await myBox.action.tap({ x: 100, y: 100 });
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!' });
const response = await myBox.action.updateSetting({ scale: 0.5 }); Copy
const response = await myBox.action.updateSetting({ scale: 0.5 });
Example