diff --git a/src/helpers/playwright/LocatorPredicate.ts b/src/helpers/playwright/LocatorPredicate.ts index 950c519..60e524c 100644 --- a/src/helpers/playwright/LocatorPredicate.ts +++ b/src/helpers/playwright/LocatorPredicate.ts @@ -1,4 +1,4 @@ -import {Locator} from 'playwright-core'; +import {Locator} from '@playwright/test'; export type LocatorPredicate = (l: Locator) => Promise; diff --git a/src/helpers/playwright/locator_attr.ts b/src/helpers/playwright/locator_attr.ts index 18f65e1..1ed89f2 100644 --- a/src/helpers/playwright/locator_attr.ts +++ b/src/helpers/playwright/locator_attr.ts @@ -1,4 +1,4 @@ -import {Locator} from 'playwright-core'; +import {Locator} from '@playwright/test'; export const hasDisabledAttr = async (l: Locator): Promise => { return l.evaluate((el: SVGElement | HTMLElement): boolean => { diff --git a/src/helpers/playwright/locator_utils.ts b/src/helpers/playwright/locator_utils.ts index d7547a3..719a89d 100644 --- a/src/helpers/playwright/locator_utils.ts +++ b/src/helpers/playwright/locator_utils.ts @@ -1,4 +1,4 @@ -import {Frame, Page, Locator} from 'playwright-core'; +import {Frame, Page, Locator} from '@playwright/test'; import {isFrame, isPage} from './type_guards'; // See https://github.com/microsoft/playwright/blob/v1.14.1/src/client/locator.ts diff --git a/src/helpers/playwright/pwRetry.ts b/src/helpers/playwright/pwRetry.ts index c1d8f90..9668683 100644 --- a/src/helpers/playwright/pwRetry.ts +++ b/src/helpers/playwright/pwRetry.ts @@ -1,4 +1,4 @@ -import {Locator, Page} from 'playwright-core'; +import {Locator, Page} from '@playwright/test'; import {config} from '../config'; import {retry, retryAttempts} from '../retry'; diff --git a/src/helpers/playwright/sleepFunc.ts b/src/helpers/playwright/sleepFunc.ts index 6bad33c..aeca118 100644 --- a/src/helpers/playwright/sleepFunc.ts +++ b/src/helpers/playwright/sleepFunc.ts @@ -1,4 +1,4 @@ -import {Frame, Locator, Page} from 'playwright-core'; +import {Frame, Locator, Page} from '@playwright/test'; import {getFrame} from './locator_utils'; export const sleepFunc = ( diff --git a/src/helpers/playwright/type_guards.ts b/src/helpers/playwright/type_guards.ts index 9946451..d7c71b9 100644 --- a/src/helpers/playwright/type_guards.ts +++ b/src/helpers/playwright/type_guards.ts @@ -1,4 +1,4 @@ -import {Frame, Page, Locator} from 'playwright-core'; +import {Frame, Page, Locator} from '@playwright/test'; export const isFrame = (x: unknown): x is Frame => { if (typeof x !== 'object' || x === null) return false; diff --git a/src/materials/Clickable.ts b/src/materials/Clickable.ts index 25e1730..4c22129 100644 --- a/src/materials/Clickable.ts +++ b/src/materials/Clickable.ts @@ -1,4 +1,4 @@ -import {Locator} from 'playwright-core'; +import {Locator} from '@playwright/test'; import {RetryOptions, LocatorPredicate} from '../helpers/playwright'; diff --git a/src/materials/Displayable.ts b/src/materials/Displayable.ts index ef5d309..d2a5d30 100644 --- a/src/materials/Displayable.ts +++ b/src/materials/Displayable.ts @@ -1,4 +1,4 @@ -import {Locator} from 'playwright-core'; +import {Locator} from '@playwright/test'; export class Displayable { constructor(readonly locator: Locator) {} diff --git a/src/materials/InputText.ts b/src/materials/InputText.ts index 0882e79..9a0cfa1 100644 --- a/src/materials/InputText.ts +++ b/src/materials/InputText.ts @@ -1,4 +1,4 @@ -import {Locator} from 'playwright-core'; +import {Locator} from '@playwright/test'; import {pwRetryUi, RetryOptions} from '../helpers/playwright'; import {Operable, OperableOptions} from './Operable'; diff --git a/src/materials/Operable.ts b/src/materials/Operable.ts index 68684ce..940ddd6 100644 --- a/src/materials/Operable.ts +++ b/src/materials/Operable.ts @@ -1,4 +1,4 @@ -import {Locator} from 'playwright-core'; +import {Locator} from '@playwright/test'; import { LocatorPredicate, diff --git a/src/materials/RadioButtons.ts b/src/materials/RadioButtons.ts index cc81551..790a860 100644 --- a/src/materials/RadioButtons.ts +++ b/src/materials/RadioButtons.ts @@ -1,4 +1,4 @@ -import {Locator, Page} from 'playwright-core'; +import {Locator, Page} from '@playwright/test'; import {Selectable, SelectableOptions} from './Selectable'; export type SelectableArgs = string | [string, SelectableOptions?]; diff --git a/src/materials/SelectTag.ts b/src/materials/SelectTag.ts index e4e63f8..44b1595 100644 --- a/src/materials/SelectTag.ts +++ b/src/materials/SelectTag.ts @@ -1,4 +1,4 @@ -import {Locator} from 'playwright-core'; +import {Locator} from '@playwright/test'; import {Clickable, ClickableOptions} from './Clickable'; import {pwRetry} from '../helpers/playwright'; diff --git a/src/materials/Selectable.ts b/src/materials/Selectable.ts index 35f10df..5083c03 100644 --- a/src/materials/Selectable.ts +++ b/src/materials/Selectable.ts @@ -1,4 +1,4 @@ -import {Locator} from 'playwright-core'; +import {Locator} from '@playwright/test'; import { LocatorPredicate,