Ir al Contenido Principal

Controladores binarios

To run automation based on the WebDriver protocol you need to have browser drivers set up that translate the automation commands and are able execute them in the browser. With WebdriverIO v8.14 and above there is no need to manually download and setup any browser drivers anymore as this is handled by WebdriverIO. You only need to have a browser installed, that's it!

The following describes how you can still set up each driver individually. Puedes encontrar una lista con todos los conductores en asombro-selenium README.

consejo

If you are looking to set up mobile and other UI platforms, have a look into our Appium Setup guide.

Chromedriver

Para automatizar Chrome puedes descargar Chromedriver directamente en el sitio web del proyecto o a través del paquete de NPM:

npm install -g chromedriver

A continuación, puede iniciarlo vía:

chromedriver --port=4444 --verbose

Geckodriver

Para automatizar Firefox descarga la última versión de geckodriver para tu entorno y desempaquetarla en el directorio de tu proyecto:

Note: Other geckodriver releases are available here. After download you can start the driver via:

/path/to/binary/geckodriver --port 4444

Edgedriver

You can download the driver for Microsoft Edge on the project website or as NPM package via:

npm install -g edgedriver
edgedriver --version # prints: Microsoft Edge WebDriver 115.0.1901.203 (a5a2b1779bcfe71f081bc9104cca968d420a89ac)

Safaridriver

Safaridriver viene preinstalado en tu MacOS y puede iniciarse directamente a través de:

safaridriver -p 4444

Welcome! How can I help?

WebdriverIO AI Copilot