How can I pass arguments in Chrome options with capabilities in TestCafe?
Hey Darran!
You can pass the capabilities by creating .json
file where you have to define all the capabilities that are required and after that give path of the file in environment variable like:
LT_CAPABILITY_PATH=/Users/yourusername/testcafe/yourfilepath
{
""Chrome@91.0:Windows 10"": {
""network"": false,
""visual"": false,
""timezone"": ""UTC+11:00"",
""goog:chromeOptions"":{
""args"":[""--user-agent=prod""]
}
}
}"