refactor(driver): use type-only imports for WebDriver
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
import { execFileSync } from "node:child_process";
|
import { execFileSync } from "node:child_process";
|
||||||
import { Builder, WebDriver } from "selenium-webdriver";
|
import { Builder } from "selenium-webdriver";
|
||||||
|
import type { WebDriver } from "selenium-webdriver";
|
||||||
import firefox from "selenium-webdriver/firefox.js";
|
import firefox from "selenium-webdriver/firefox.js";
|
||||||
|
|
||||||
export { type WebDriver };
|
export type { WebDriver };
|
||||||
|
|
||||||
// Find Geckodriver - Resolved off PATH so Nix and system installs both work.
|
// Find Geckodriver - Resolved off PATH so Nix and system installs both work.
|
||||||
// Bypasses selenium-manager which is x86-64 only and breaks on aarch64.
|
// Bypasses selenium-manager which is x86-64 only and breaks on aarch64.
|
||||||
|
|||||||
Reference in New Issue
Block a user