I was trying to open a URL which requires a bearer token as a header argument:
I think the easiest way is added the bearer token into chrome driver. I have checked this website (the website) which shows the arguments of chrome driver but I could not find a way to do it.
I can successfully open the URL(response JSON data)If I use postman by adding bearer token into Authorization:
Otherwise, it will show the following info if without bearer token:
So the problem is how do I add the bearer token into chrome driver so that I can obtain the JSON data?