How to set the user agent in selenium tests
What is a User Agent?
You might have to set different type of user agents , so today we will cover how to set the user agent in selenium tests.
User-Agent HTTP header identifies the client and is sent by “regular” browsers, search engine crawlers, or other web client software.
If you want to use firefox you should check first this stackoverflow article .
When you are using Chrome, you can spawn a new Chrome using the
--user-agent command line switch.