Closed openrijal closed 8 years ago
Have you tried the following structure?
var options = {
path: require('slimerjs').path,
parameters: {
'ignore-ssl-errors': 'yes',
'ssl-protocol': 'any'
}
};
driver.create(options, fn....)
yes, I tried that, using the above pattern gives me a "Null" driver.
Having the same problem. Anyone figured this out?
I have a working code sample here: https://github.com/crackjack/slimer-server/blob/master/slimer_server.js
Please check the commented section.
hi.
I would like to pass both the options i.e. "path" and "parameters" to the create method. I tried a lot of combinations, but nothing seems to work.
I tried sending options as array:
[{path: ...}, {parameters: ...}]
also as objects:{path: ...., parameters: ....}
, but I'm not able to pass it properly.I want slimerjs in the path, and
['--ignore-ssl-errors=yes', '--ssl-protocol=any']
in the parameters.Please guide the correct way to achieve it.