Skip to content

Ability to Inject Online Scripts #112

@perumal

Description

@perumal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions