title: rotating user agent using Python3 and Selenium 4 chrome
body: <p>I was wondering if it is possible to rotate between user agents using selenium 4 and Python. My script create multiple chrome windows, but all of them get the same fake user agent. Anyone knows if at this date you can rotate selenium fake user agents between each window it creates ? 
  Thank you in advance! </p>
  
  <p><a href="https://i.stack.imgur.com/hGPrz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hGPrz.png" alt="enter image description here"></a> </p>
  
  <p>update : here is my updated code, even with cdp (thanks for the updated answer)i still get the same UA for every windows. Might be something wrong in my code that blocks me ?</p>