selenium
selenium is an umbrella project for a range of tools and libraries that enabled and support the automation of web browsers
install selenium libraries
npm install selenium-webdriver
download chromedriver
To drive Chrome or Chromium, you have to download chromedriver and put it in a folder that is on your system’s path.
https://www.selenium.dev/documentation/en/webdriver/driver_requirements/
https://chromedriver.chromium.org/downloads
setx /m path "%path%;C:\WebDriver\bin\"
Add mocha executable file to your system path. If you have installed mocha globally, you can find your mocha.exe at “$USER_HOME\AppData\Roaming\npm”.
网友评论