Skip to content

Commit

Permalink
chore: Add an explicit getWindowRect for the images plugin (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Mar 6, 2024
1 parent e935c90 commit 7f9ea99
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ export class Mac2Driver extends BaseDriver {
return await this.wda?.proxy?.command('/status', 'GET');
}

// needed to make image plugin work
async getWindowRect () {
return await this.wda?.proxy?.command('/window/rect', 'GET');
}

// @ts-ignore TODO: make args typed
async createSession (...args) {
// @ts-ignore TODO: make args typed
Expand Down

0 comments on commit 7f9ea99

Please sign in to comment.