how to disable chrome extension in selenium

前端 未结 3 1191
礼貌的吻别
礼貌的吻别 2020-12-10 07:31

I am trying to disable all chrome extensions when starting up my selenium chrome. But all extensions keep starting up each time I run the code. Is there a way of disabling t

3条回答
  •  失恋的感觉
    2020-12-10 07:49

    Found a fix.

      capabilities.setCapability("chrome.switches", Arrays.asList("--disable-extensions"));
    

提交回复
热议问题