Is it possible to use selenium-webdriver in a javascript web application (Browser)?

80 views
Skip to first unread message

林荣彬

unread,
Apr 8, 2021, 12:42:02 AM4/8/21
to Selenium Users
Hi, I'm new to selenium-webdriver.

I had installed chromedriver in my local machine, and I want to develop a web app with Vue.js, when loading a web page, a function will call chromedriver with selenium-webdriver.

Is it possible to do that ?

Or selenium-webdriver only supports a backend or command line javascript application running on nodejs ?

David

unread,
Apr 9, 2021, 2:47:50 PM4/9/21
to Selenium Users
It wouldn't work the way you want unless instead of a webpage, you build it as a desktop app based off web app implementation wrapped around Electron (or other JS to desktop app framework). That would either control the browser in the electron app or spawn off a new browser instance for the automation. The other alternative is your web app has the web server spawn off WebDriver to do its thing on the server side (the server's desktop/UI or in headless mode on server) not the client browser's desktop side.
Reply all
Reply to author
Forward
0 new messages