title: How do I add a bearer token into chrome driver as a header argument by using selenium and python?
body: <p>I was trying to open a URL which requires a bearer token as a header argument:
  <img src="https://i.stack.imgur.com/sfiCR.png" alt="the header file shows the URL needs a bearer token which is generated after each login"></p>
  
  <p>I think the easiest way is added the bearer token into chrome driver.
  I have checked this website (<a href="https://peter.sh/experiments/chromium-command-line-switches/" rel="nofollow noreferrer">the website</a>) which shows the arguments of chrome driver but I could not find a way to do it.</p>
  
  <p>I can successfully open the URL(response JSON data)If I use postman by adding bearer token into Authorization:
  <img src="https://i.stack.imgur.com/HeIzv.png" alt="enter image description here"></p>
  
  <p>Otherwise, it will show the following info if without bearer token: </p>
  
  <p><img src="https://i.stack.imgur.com/jUHr2.png" alt="enter image description here"></p>
  
  <p>So the problem is how do I add the bearer token into chrome driver so that I can obtain the JSON data?</p>