import {ElementFinder} from 'protractor'; import { DriverFactory } from 'wix-ui-core/dist/src/common/BaseDriver.protractor'; export interface FullTextViewDriver { element: () => ElementFinder; getText: () => Promise; } export const fullTextViewDriverFactory: DriverFactory = component => ({ /** returns the component element */ element: () => component, /** returns the component text */ getText: async () => component.getText() });