@wix/unidriver-core
v1.4.9
Published
Utils for UniDrivers
Maintainers
Keywords
Readme
@wix/unidriver-core
- Common types for consumer usage
configureUniDriver- called once in the test setup to configure global behaviour anyUniDriverinstances. Can be called with the following options:queryAttribute- it configures$/$$driver call to wrap selector in provided attribute. e.g. if you pass{queryAttribute: 'data-hook'}and driver is called assomeDriver.$('some-selector)actual dom query would be to[data-hook="some-selector"]. Very useful when you have stable selectors viadata-hook/data-test-idattributes and such.Can also be a function, that receives a selector, for instance if you want partial match. e.g.
[data-hook~="${selector}"]defaultTimeout- sets the default timeout for all driver calls. Default is 1000ms.
WARNING: INTERNAL PACKAGE. DON'T USE DIRECTLY
@wix/unidriver-core/internal
- Helper types and low-level functions meant only for usage inside the unidriver monorepo
