Is there a way to add extention in the browser without using chrome options in selenium test?

Is there a way to add extention in the browser without using chrome options in Selenium Test?

Hi Richard.hall,

You can pass this to your capabilities using Loadextention like below:

Step 1: Upload your extension to s3 using the Extensions POST API

(LambdaTest API Documentation | LambdaTest)

Step 2: Get the uploaded s3 path and make an array object like below

String[] chromeextention = {"S3 path genearated in the PAI response"};

Step 3: Pass it into capabilities like this:

capabilities.setCapability("loadExtension",chromeextention);