是否可以使用独占代码将 .p12 或 .pfx 文件导入 Selenium Webdriver?
Is it possible to import a .p12 or .pfx file to Selenium Webdriver using exclusively code?
大家早上好!!
我在尝试编写我的 e2e 测试之一时遇到了问题。
我想使用证书登录我的应用程序,我不知道是否可以仅使用代码添加此证书,我已经用谷歌搜索了几天来寻找一些信息,但是我只遇到过在浏览器中将证书添加到测试配置文件然后切换到该配置文件的解决方案,但它不适合我,所以...
是否可以在 Selenium Webdriver 中使用本地文件添加证书?
感谢您的回答!
PS:也许使用功能?
From this answer
Webdriver has no built in mechanism for adding a personal cert.
If you are using firefox the only way that I have found to do this is
to create a firefox profile and add the certificate to it. You can
then either reuse the profile when you run your tests OR, and this is
my prefered option, take the cert8.db and key3.db files and add them
to the profile that webdriver creates at runtime.
大家早上好!!
我在尝试编写我的 e2e 测试之一时遇到了问题。
我想使用证书登录我的应用程序,我不知道是否可以仅使用代码添加此证书,我已经用谷歌搜索了几天来寻找一些信息,但是我只遇到过在浏览器中将证书添加到测试配置文件然后切换到该配置文件的解决方案,但它不适合我,所以...
是否可以在 Selenium Webdriver 中使用本地文件添加证书?
感谢您的回答!
PS:也许使用功能?
From this answer
Webdriver has no built in mechanism for adding a personal cert.
If you are using firefox the only way that I have found to do this is to create a firefox profile and add the certificate to it. You can then either reuse the profile when you run your tests OR, and this is my prefered option, take the cert8.db and key3.db files and add them to the profile that webdriver creates at runtime.