Skip to content

Commit

Permalink
Added clickCanvas method.
Browse files Browse the repository at this point in the history
  • Loading branch information
barankyle committed Feb 13, 2024
1 parent e0d0797 commit 03c5e70
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bot/bot-class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,12 @@ export class EtherealEngineBot {
await this.pageUtils.clickSelectorId('canvas', 'engine-renderer-canvas')
}

async clickCanvas() {
await this.page.mouse.click(0, 0)
await this.setFocus('canvas')
await this.pageUtils.clickSelectorId('canvas', 'engine-renderer-canvas')
}

/** Enters the editor scene specified
* @param {string} sceneUrl The url of the scene to load
*/
Expand Down

0 comments on commit 03c5e70

Please sign in to comment.