chrome modify headers in selenium java, i am able to add extension .crx through script
I am able to add extension(.crx ) through selenium web driver ChromeOptions options = new ChromeOptions(); options.addExtensions(new File("src/main/resources/idgpnmonknjnojddfkpgkljpfnnfcklj.crx")); But unable to add name and value through selenium java. can anyone help me on this? Chrome stores the settings of an extension in the localstorage. So one way to customize your extension is to first set the context on it and then edit the localstorage with a piece of Javascript. Here is an example adding two headers (token1 and token2) to ModHeader: // add the ModHeader extension ChromeOptions