我正在使用 WebDriverManager (WebDriverManager.firefoxdriver().setup()) 来管理我的 selenium 测试中的二进制文件。在本地我可以运行我的测试,但在詹金斯我得到错误。是否可以将 WebDriverManager 与 jenkins 一起使用?我是否需要配置任何东西才能使我的测试也在 jenkins 上运行?
[TestNG-tests-1] INFO io.github.bonigarcia.wdm.WebDriverManager - Reading
https://chromedriver.storage.googleapis.com/ to seek chromedriver
[TestNG-tests-1] INFO io.github.bonigarcia.wdm.online.Downloader - Downloading
https://chromedriver.storage.googleapis.com/86.0.4240.22/chromedriver_linux64.zip
[TestNG-tests-1] INFO io.github.bonigarcia.wdm.online.Downloader - Extracting driver from
compressed file chromedriver_linux64.zip
[TestNG-tests-1] INFO io.github.bonigarcia.wdm.WebDriverManager - Exporting
webdriver.chrome.driver as
/home/jenkins/.cache/selenium/chromedriver/linux64/86.0.4240.22/chromedriver
/home/jenkins/.cache/selenium/chromedriver/linux64/86.0.4240.22/chromedriver: error while
loading shared libraries: libnss3.so: cannot open shared object file: No such file or
directory