wix-style-react
Version:
wix-style-react
14 lines (12 loc) • 345 B
JavaScript
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;