Type alias: ElementSelector
mugshot.ElementSelector
Ƭ ElementSelector: string
Identify an element on the screen. Depending on the Screenshotter implementation this could be a CSS selector, an iOS selector, an Android selector etc.
NOTE: This abstraction produces a LISP violation: some Screenshotter
implementations only work with a subset of selectors e.g. CSS selectors
or iOS selectors. Fixing this would require inverting the dependency
between Mugshot and Screenshotter, which I'm not fond of since it
moves Mugshot
one level down. WebdriverIO, for instance, has the same
problem; it can talk to Appium which can talk to mobile devices, so using
'div'
as a selector doesn't make sense in that case.
Defined in: packages/mugshot/src/lib/mugshot.ts:66