Search code examples
google-chromeautomated-testsuser-agenttestcafeweb-testing

Setting user-agent in browsers with testcafe


My e2e UI tests require setting specific user-agent in browsers. It is not a problem in Chrome, because I can use Chrome emulation like 'chrome:emulation:userAgent=...' but I can't do it with Firefox, Safari, etc. Does anyone have any idea how to do this?


Solution

  • Unfortunately, this feature is available only in Chrome.