I'm trying to set the network capture content as I would using plain slimerJS with the following:
page.captureContent = [/html/, /text/];
using the getter setter functions with the node-slimerjs bridge using the following code:
page.set('captureContent',[/text/,/html/]);
but the setter function isn't setting the value correctly and I'm left with the empty body for the network responses with text/* and html/* types.
After setting the captureContent if I try to read the value with console.log I can see that only an empty object has been set to the capture content:
I'm trying to set the network capture content as I would using plain slimerJS with the following:
using the getter setter functions with the node-slimerjs bridge using the following code:
but the setter function isn't setting the value correctly and I'm left with the empty body for the network responses with text/* and html/* types. After setting the captureContent if I try to read the value with console.log I can see that only an empty object has been set to the capture content:
from node console: captureContent::: [ {}, {} ]
I also tried creating new regex objects and setting them using the setter function but got the same result.
@wmhilton @chettam @adidoo-MT