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
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
attachToTargetit returns a different session id from the id created vianewTabwhen 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