Package Exports
- n8n-nodes-webdriverio
- n8n-nodes-webdriverio/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (n8n-nodes-webdriverio) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
n8n-nodes-webdriverio
This is an n8n community node that provides integration with WebdriverIO for browser and mobile automation.
n8n is a fair-code licensed workflow automation platform.
WebdriverIO is an automation framework for browser and mobile testing.
Features
This node allows you to:
- Execute WebdriverIO commands for browser and mobile automation
- Configure automated workflows within n8n's interface
- Support dynamic WebdriverIO configurations including:
- Platform settings (Android, iOS)
- Appium settings (host, port, automation name)
- Device capabilities
- App-specific parameters (package name, activity)
- Custom WebdriverIO options
Prerequisites
- Node.js v18+
- n8n v1.0+
- Running Appium server for mobile automation
Installation
Follow these steps to install this node in your n8n instance:
# Install from NPM
npm install n8n-nodes-webdriverio
# Install from source
cd ~/.n8n/custom
git clone https://github.com/yourusername/n8n-nodes-webdriverio.git
cd n8n-nodes-webdriverio
npm install
npm run buildRestart your n8n instance and the WebdriverIO node should be available.
Usage
Credentials
Before using the WebdriverIO node, you need to configure WebdriverIO API credentials:
- Create new credentials of type "WebdriverIO API"
- Configure the Appium server, automation name, and log level
- Save the credentials
Node Operations
The WebdriverIO node supports three main operations:
Start Session: Initializes a new WebdriverIO session with specified capabilities
- Configure platform (Android/iOS)
- Set device name
- Configure app-specific settings (app package, activity, bundle ID)
Execute Action: Perform various automation actions
- Click Element
- Set Value
- Get Text
- Find Element
- Wait For Element
- Execute Custom Command
End Session: Terminates the active WebdriverIO session
Example Workflow
A basic workflow for mobile automation might include:
- Start Session node: Initialize WebdriverIO with Android settings
- Execute Action node: Click on a specific element
- Execute Action node: Enter text into an input field
- Execute Action node: Verify text on screen
- End Session node: Clean up the WebdriverIO session
Development
To develop and modify this node:
# Clone the repository
git clone https://github.com/yourusername/n8n-nodes-webdriverio.git
# Install dependencies
cd n8n-nodes-webdriverio
npm install
# Build
npm run build
# Link to your n8n installation
npm link
cd ~/.n8n
npm link n8n-nodes-webdriverio