Using ChromeDriver with WebDriverIO without Selenium

oligofren

I want to drive my webdriverio tests with ChromeDriver, without going by Selenium. That should be possible, it seems, but I am not sure where to start.

I have tried starting up ChromeDriver like this

chromedriver

and then in another Window I have started up the wdio testrunner like this:

$(npm bin)/wdio 

If doing nothing this will just get me

ERROR: connect ECONNREFUSED 127.0.0.1:4444

Changing the port in the wdio.conf.js to match the ChromeDriver's port 9515 gets me

ERROR: unknown command: wd/hub/session

I have tried adding --url-base=wd/hub/session to the chromedriver startup options, but it just changes the error to

ERROR: unhandled request

Still, no go. I have set the services property for wdio to ['chromedriver'] - but it does not seem to take effect.

oligofren

It turns out that I failed to follow one vital bit of information:

path: '/'

From the docs

path

Path to WebDriver server.

Type: String

Default: /wd/hub

This is the address the Chromedriver is listening to.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

WebDriverIO/Selenium: unable to start chromedriver with error expecting Chrome version 90

Using chromedriver with selenium ubuntu

BrokenPipeError while using selenium and chromedriver

Selenium via Node.js and webdriverIO: timeout without effect

Selenium - Running ChromeDriver Without Modifying PATH

Selenium grid not working without chromedriver local install

Automated Web Interaction without Selenium / ChromeDriver

selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain chromedriver using Selenium Manager error using Selenium and ChromeDriver

Selenium 4.6 not using correct version of ChromeDriver

How to test gestures with Selenium using ChromeDriver?

Selenium ChromeDriver issue using Webdriver Manager for Python

Altair automatic save chart using selenium chromedriver

Setting chromedriver proxy auth with Selenium using Python

Docker: using container with headless Selenium Chromedriver

Set Chrome's language using Selenium ChromeDriver

How to disable logging of ChromeDriver using Selenium and JavaFX

Heroku: Unable to find chromedriver when using Selenium

Running selenium-chromedriver using Protractor on linux

Save settings for extentions in Chromedriver using selenium with python

Chromedriver: How to translate a page using selenium?

How to find element using Selenium and Chromedriver

Selenium - run javascript via navbar using chromedriver

Post Instagram Stories using selenium/chromedriver in python

How to scroll horizontally using selenium chromedriver in python

File is not getting downloaded using selenium chromedriver

Selenium/WebdriverIO Chrome headless?

Javascript : Selenium WebdriverIO

Running ChromeDriver or FirefoxDriver on Selenium without it's GUI (headless mode)

How can we use ChromeDriver, IEDriver, GeckoDriver without selenium in python?