I'm trying to use Selenium on Electron app and am using the following modules:
"chromedriver": "^78.0.1",
"selenium-webdriver": "^4.0.0-alpha.4",
"electron-builder": "^21.2.0",
I built my app on a Mac and Selenium is working fine. However, when I run Electron Selenium app on Widows it can't find chromedriver
.
react-electron/node_modules/chromedriver
is below.
Of course it doesn't have chromedriver.exe
, so I put chromedriver.exe
into chromedriver/bin
. Then I built it again but the built app doesn't include chromedriver.exe
. How can I pack chromedriver.exe
into the built app?
I applicate your help.