A lot of methods take a selector as an argument. A selector can either be a CSS selector, a Vue component, or a find option object.
# CSS SelectorsMount handles any valid CSS selector:
div
, foo
, bar
).foo
, .bar
)[foo]
, [foo="bar"]
)#foo
, #bar
)div:first-of-type
)You can also use combinators:
div > #bar > .foo
)div #bar .foo
)div + .foo
)div ~ .foo
)Vue components are also valid selectors.
# Find Option Object # NameUsing a find option object, Vue Test Utils allows for selecting elements by a name
of component on wrapper components.
Using a find option object, Vue Test Utils allows for selecting elements by $ref
on wrapper components.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4