chromy icon indicating copy to clipboard operation
chromy copied to clipboard

Ability to Inject Online Scripts

Open perumal opened this issue 6 years ago • 0 comments

Hi All, Can anyone guide me on injecting an online script like www.domain.com/myscript.js instead of injecting an local offline script present in the drive like '/Users/john/dev/myscript.js'

chromy.chain()
    .goto('http://www.somedomain.com')
    .sleep(5000)
    .inject('js', 'http://www.domain.com/myscript.js')

If I inject an online script I am getting the following error

Error: ENOENT: no such file or directory, open 'http://www.domain.com/myscript.js'

Thank you

perumal avatar Apr 03 '18 04:04 perumal