In a Selenium test, how do you set the user agent?
Hello Darran,
You can use the following commands to set User-Agent in selenium test:
op = webdriver.ChromeOptions()
op.add_argument("user-agent=<user agent value>")
In a Selenium test, how do you set the user agent?
Hello Darran,
You can use the following commands to set User-Agent in selenium test:
op = webdriver.ChromeOptions()
op.add_argument("user-agent=<user agent value>")