我ChromeOptions
在Java中遇到了这个问题。在我的代码中实现它时,它不包含我需要在 Chrome 浏览器中接受/忽略 SSL 证书的一些方法。这样的方法.setCapability
我可以传入它CapabilityType.ACCEPT_SSL_CERTS, true);
。
例子:
ChromeOptions options = new ChromeOptions();
options.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
options.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);
... setCapability
Eclipse 在哪里被标记为错误,它说
The method setCapability(String, boolean) is undefined for the type ChromeOptions