是Firefox还是Geckodriver,它创建了“ rust_mozprofile”目录

abc*_*abc 5 firefox selenium selenium-webdriver geckodriver

每当我们调用Firefox时,都会在'/ tmp'目录下创建rust_mozprofile目录。由于Firefox内部调用Geckodriver,因此我们不确定Firefox还是Geckodriver正在创建rust_mozprofile目录。

我确实想知道是Geckodriver还是Firefox,因为我的'/ tmp'目录的内存较少。

所以问题是我真的想修改为rust_mozprofile创建目录的路径。

我正在使用以下技术,

  • 硒-3.3.0
  • Firefox-52.2.0
  • 壁虎-13

如果有的话,请给我们一些建议。

Deb*_*anB 5

如果您仔细查看geckodriver v0.18.0日志,您会发现第一次rust_mozprofile出现在以下行中:

1504762617094   Marionette  CONFIG  Matched capabilities: {"browserName":"firefox","browserVersion":"56.0","platformName":"windows_nt","platformVersion":"6.2","pageLoadStrategy":"normal","acceptInsecureCerts":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"rotatable":false,"specificationLevel":0,"moz:processID":5848,"moz:profile":"C:\\Users\\AtechM_03\\AppData\\Local\\Temp\\rust_mozprofile.OfFuR9ogm33d","moz:accessibilityChecks":false,"moz:headless":false}
Run Code Online (Sandbox Code Playgroud)

此日志清楚地表明正在配置:

"moz:profile":"C:\\Users\\AtechM_03\\AppData\\Local\\Temp\\rust_mozprofile.OfFuR9ogm33d" 
Run Code Online (Sandbox Code Playgroud)

而这个配置是由WebDriver实例完成的,即GeckoDriver

这是GeckoDriver在内部配置木偶,后者又启动Mozilla Firefox浏览器

IMO,自从我们从旧版 Firefox迁移到基于MarionetteFirefox以来,此工作流程已在实践中。因此,Geckodriver - 13也必须如此。


更新:

GeckoDriver 作为应用程序/exe 文件: 在此处输入图片说明