How to override useragent while running the test?

Let me know how to override useragent when I run the test.

Hello Mark,

You need to argument in the Chrome options as follows to override the user agent:

 ChromeOptions options = new ChromeOptions();
        options.addArguments("user-agent=\"Mozilla/7.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)\"");