title: How to set a custom name for the user-agent using Selenium and Python
body: <p>I am using selenium + webdriver and trying testing different user agents. I am adding user agent like this for Chrome on Windows for example:</p>
  <pre><code>option = Options()
  option.add_argument(&quot;user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36&quot;)
  </code></pre>
  <p>Now when I log see login details it says Windows Chrome but when I want to rename it to something else like this:</p>
  <pre><code>option.add_argument(&quot;user-agent=test-user-agent&quot;)
  </code></pre>
  <p>or</p>
  <pre><code>option.add_argument(&quot;user-agent=Mozilla/5.0 (test-user-agent NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36&quot;)
  </code></pre>
  <p>Some websites display it as <code>unknown</code> or <code>browser not supported</code></p>
  <p>Is there a way to &quot;rename&quot; user-agent or create custom one or there is only preset number of them that websites know?</p>