UNPKG

wix-style-react

Version:
14 lines (12 loc) 345 B
const inputDriverFactory = async (component, page) => { const input = await component.$('input'); return { element: () => component, enterText: async text => { await input.focus(); await input.type(text); }, getText: () => page.evaluate(_input => _input.value, input), }; }; export default inputDriverFactory;