I am using selenium + webdriver and trying testing different user agents. I am adding user agent like this for Chrome on Windows for example:
option = Options()
option.add_argument("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")
Now when I log see login details it says Windows Chrome but when I want to rename it to something else like this:
option.add_argument("user-agent=test-user-agent")
or
option.add_argument("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")
Some websites display it as unknown
or browser not supported
Is there a way to "rename" user-agent or create custom one or there is only preset number of them that websites know?