[英]Get firefox profile path in selenium WebdriverJS
How can I access/get the firefox profile path, from welenium webdriver ? 如何从welenium webdriver访问/获取firefox配置文件路径?
I can't seem to find it in the docs here: https://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/index_exports_Capabilities.html 我似乎在这里的文档中找不到它: https : //seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/index_exports_Capabilities.html
Okey so to get the profile what I ended up doing is the following: Okey,所以要获取个人资料,我最终要做的事情如下:
let capabilities = await this.firefox.getCapabilities();
let profile = capabilities.get('moz:profile');
Then you have access to the temporal profile. 然后,您可以访问时间配置文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.