Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Inject Online Scripts #112

Open
perumal opened this issue Apr 3, 2018 · 0 comments
Open

Ability to Inject Online Scripts #112

perumal opened this issue Apr 3, 2018 · 0 comments

Comments

@perumal
Copy link

perumal commented Apr 3, 2018

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 perumal changed the title Online Script Inject Error Ability to Inject Online Scripts Apr 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant