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
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'
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