Skip to content

Commit

Permalink
chore: fix typescript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Feb 10, 2025
1 parent a792fd4 commit 2019d55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Cache } from "./cache";
import { fetchBrowsersMilestones } from "./browser-versions/index";
import { downloadBrowserVersions } from "./browser-downloader";
import { getUbuntuMilestone, writeUbuntuPackageDependencies } from "..";
import logger from "../../../utils/logger";
import * as logger from "../../../utils/logger";

const createResolveSharedObjectToPackageName =
(cache: Cache) =>
Expand Down
5 changes: 2 additions & 3 deletions src/browser/existing-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,10 @@ export class ExistingBrowser extends Browser {
}

protected _overrideGetElementsList(session: WebdriverIO.Browser): void {
// prettier-ignore
for (const attachToElement of [false, true]) {
// @ts-expect-error This is a temporary hack to patch wdio's breaking changes.
session.overwriteCommand(
"$$",
async (origCommand, selector): ChainablePromiseArray<ElementArray> => {
session.overwriteCommand("$$", async (origCommand, selector): ChainablePromiseArray<ElementArray> => {
const arr: WebdriverIO.Element[] & { parent?: unknown; foundWith?: unknown; selector?: unknown } =
[];
const res = await origCommand(selector);
Expand Down

0 comments on commit 2019d55

Please sign in to comment.