简体   繁体   中英

Get firefox profile path in selenium WebdriverJS

How can I access/get the firefox profile path, from welenium webdriver ?

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

Okey so to get the profile what I ended up doing is the following:

let capabilities = await this.firefox.getCapabilities();
let profile = capabilities.get('moz:profile');

Then you have access to the temporal profile.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM