Skip to content

Commit

Permalink
feat: click 支持更多参数
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuineng committed Sep 16, 2023
1 parent 964242a commit 05810a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/server/controllers/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

async function click(next) {
const elementId = this.params.elementId;
this.state.value = await this.device.click(elementId);
const {
clickOpts,
} = this.request.body;
this.state.value = await this.device.click(elementId, clickOpts);
await next;
}

Expand Down

0 comments on commit 05810a5

Please sign in to comment.