Skip to content

Commit

Permalink
fix(hover): cast options to any for compatibility with WebdriverBrows…
Browse files Browse the repository at this point in the history
…erProvider
  • Loading branch information
apple-yagi committed Nov 30, 2024
1 parent 7b7fa53 commit ea38468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/browser/src/node/commands/hover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const hover: UserEventCommand<UserEvent['hover']> = async (
}
else if (context.provider instanceof WebdriverBrowserProvider) {
const browser = context.browser
await browser.$(selector).moveTo(options)
await browser.$(selector).moveTo(options as any)
}
else {
throw new TypeError(`Provider "${context.provider.name}" does not support hover`)
Expand Down

0 comments on commit ea38468

Please sign in to comment.