Skip to content

Commit

Permalink
explicit cast
Browse files Browse the repository at this point in the history
  • Loading branch information
testlabauto committed Jan 8, 2025
1 parent 539e25a commit 8beb91d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/infra/playwrightDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export class PlaywrightDriver {

private async evaluateWithDriver<T>(pageFunction: PageFunction<IWindowDriver[], T>) {
const driverHandle = await this.getDriverHandle();
const driver = await driverHandle.jsonValue(); // Extract the actual `IWindowDriver` object
const driver = driverHandle as unknown as IWindowDriver; // Explicit cast
return this.page.evaluate(pageFunction, [driver]);
}

Expand Down

0 comments on commit 8beb91d

Please sign in to comment.