npm selenium-webdriver appears to require a Node.js environment (see dependencies).
For context, I want to create a Rust Tauri app with JavaScript frontend (Vite). If I need use Selenium in the application, is the most straightforward path using the Rust backend to run Selenium scripts in a Node.js environment and feed that information to the frontend?
I naively tried creating a simple Selenium driver instance in the frontend portion of my app. After following some errors, then doing some reading, I realized Selenium and its dependencies expect a Node.js environment (i.e. the global ‘process’ variable and Node.js modules such as fs).
I’m looking for advice on moving forward whether that means calling Selenium on the backend or not using Selenium entirely.
tim_blake is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.