3

I was trying to open a URL which requires a bearer token as a header argument: the header file shows the URL needs a bearer token which is generated after each login

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: enter image description here

Otherwise, it will show the following info if without bearer token:

enter image description here

So the problem is how do I add the bearer token into chrome driver so that I can obtain the JSON data?

Ishita Shah
  • 3,955
  • 2
  • 27
  • 51
Martin
  • 116
  • 10

0 Answers0