diff --git a/src/general_helpers.ts b/src/general_helpers.ts index 9de17a8..9556475 100644 --- a/src/general_helpers.ts +++ b/src/general_helpers.ts @@ -1,4 +1,4 @@ -import type { ElectronApplication, JSHandle, Page } from 'playwright-core' +import type { ElectronApplication } from 'playwright-core' import type { PageFunctionOn } from 'playwright-core/types/structs' import { retry, RetryOptions } from './utilities' diff --git a/src/menu_helpers.ts b/src/menu_helpers.ts index c6adde1..fc9a638 100644 --- a/src/menu_helpers.ts +++ b/src/menu_helpers.ts @@ -33,7 +33,7 @@ export function clickMenuItemById( throw new Error(`Menu item with id ${menuId} not found`) } }, id), - options + { disable: true, ...options } ) } @@ -95,7 +95,7 @@ export async function clickMenuItem
( } await mI.click() }, menuItem.commandId), - options + { disable: true, ...options } ) }