Can we putgoog:chromeOptions it under LT:Options?

As an example, Can we put arguments here at chrome like this:

var chromeOptions = new ChromeOptions(); chromeOptions.AddArgument("–lang=locale-of-choice");

this will create arguments like I showed you above

1 Like

I understand that you want to pass the Google Chrome Options argument with the existing LT:Options. Kindly try passing the “goog:chromeOptions” inside “LT:Options” itself and it should work in the case of Selenium 4. You can do it as mentioned below:

{{ “browserName”: “chrome”, “LT:Options”: { “build”: “2.7.1”, “name”: “SGBIIDesignIntensetest”, “platformName”: “Android”, “resolution”: “”, “selenium_version”: “”, “idleTimeout”: “540”, “deviceName”: “HTC 10”, “deviceOrientation”: “LANDSCAPE”, “platformVersion”: “8”, “goog:chromeOptions”: { “args”: [ “–disable-translate”, “–disable-features=Translate”, “–use-fake-ui-for-media-stream”, “–allow-file-access-from-files”, “use-file-for-fake-audio-capture=testSound.wav”, “use-fake-device-for-media-stream” ] } }, }}