Skip to content

question: how to get session id via target id #2

@bung87

Description

@bung87

I wanna inject script into tabs, whether it's opened by program or user, so I am able to get list of tabs via getTargets,
tried attachToTarget it returns a different session id from the id created via newTab

when I tried to call cdp command it give {"code":-32001,"message":"Session with given id not found."}

btw, it's also related to another problem, it opened a tab after launch, I am not able retrive the tab

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions