node-phantom
node-phantom copied to clipboard
How do you set a custom port?
So this works on the other hacky node phantom package, but not on this package:
phantom.create
port: <randomFreePort>
, (ph) ->
But i get something like this:
TypeError: object is not a function
What is the correct way to pass a port option?
Thanks!
And i also tried this:
phantom.create null,
parameters: {port: <randomFreePort>}
, (ph) ->
Now i get
phantom crash: code 0
phantom crash: code 0
phantom stderr: Error: Unknown option: port
YES! I need to set a custom port also!!