gemini
gemini copied to clipboard
captureElements() and ignoreElements() should capture/ignore all matching elements
For now it captures / ignores the first one only.
I don't think it should capture/ignore all elements with current API. My proposal is to add some new way to specify that every element matching the selector should be taken into account. For example:
suite.captureElements({every: '.we-need'})
.ignoreElements({every: '.we-dont-need'})
.ignoreElements('.we-dont-need-the-first')
@SevInf Ok
/cc @varya
M.b. this should be another thread, but the example above (the chaining) would not work, because every ignoreElements
overwrites the previous in the suite.
+1 It is strange that method with name ignoreElements really ignore only one element.
+1
:+1:
+1
Current state of this issue:
- [x]
ignoreElements
- [ ]
setCaptureElements