fuzzy-query
What is fuzzy-query ?
- It is a library to select HTML element and operate input action for form.
- It has original selecting query which puts more emphasis on visibility than performance.
- It makes End-To-End test more intuitive and stronger than css selector.
Usage
Selectors
RegExp Selector
<!-- click me ! -->foo
CSS selector
<!-- click me ! -->foo
Ordered Selector (combination of selectors)
foo<!-- not click me ! -->barbaz<!-- click me ! -->bar
Orderd Selector with index (last argument)
foo<!-- click me ! -->barbaz
table selector
head1 head2 head3 value1 <!-- click me! --> value2: value3 value4 value2: value3
group member selector
grouping elements by group value (need to be css selector), member and post selectors will search nodes between grouping elements.
seafoosunfoo
heading selector
find "heading element" by heading key, and find next element until "next heading element".
if RegExp selector is specified to find heading element, element having same style (*) of heading element will be next heading element. (if css selector is specified, element matching css selector will be next.)
*same style means two elements having same class, style attributes and same style ancestors.
skyfooseafoo
Selecting Priority
-
In first selector, last element takes a priority.
<!-- not click me ! -->foobar<!-- click me ! -->bazfoobar -
In other selector, first element takes a priority.
foo<!-- click me ! -->bar<!-- not click me ! -->baz
Operations
click
foo
select (list)
this method has a string argument (it is interpreted by RegExp)
Value: foo <!-- select me ! --> bar baz
select (checkbox)
foo<!-- select me ! --> bar
type
Value:
text
fooget this text !
License
MIT