I need to capture an element with two other elements being ignored. Here's the code I use to do that:
gemini.suite('rubricator', suite => {
suite
.setUrl('/')
.setCaptureElements('div#experts')
.ignoreElements({every: ['span.muted', 'a.experts__single-link_show_more'] })
.capture('');
});
I pass the elements to be ignored as an array. However, I get an error:
TypeError: suite.ignoreElements accepts strings, object with property "every" as string or array of them
How do I pass multiple arguments to ignoreElements()?
I need to capture an element with two other elements being ignored. Here's the code I use to do that:
I pass the elements to be ignored as an array. However, I get an error:
TypeError: suite.ignoreElements accepts strings, object with property "every" as string or array of them
How do I pass multiple arguments to ignoreElements()?