Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从welenium webdriver访问/获取 firefox 配置文件路径?
我似乎无法在此处的文档中找到它:https ://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/index_exports_Capabilities.html
好吧,为了获得个人资料,我最终做的是以下内容:
let capabilities = await this.firefox.getCapabilities(); let profile = capabilities.get('moz:profile');
然后,您可以访问时间剖面。