Overview
AutoMFlows uses Playwright under the hood to provide powerful browser automation capabilities. This guide covers all browser-related nodes and advanced automation techniques.Supported Browsers
AutoMFlows supports three browser engines:Chromium
Google Chrome, Microsoft Edge, and other Chromium-based browsers
Firefox
Mozilla Firefox
WebKit
Safari (WebKit engine)
Opening a Browser
Every browser automation workflow starts with the Open Browser node.- Headless Mode
- Viewport Size
- Stealth Mode
- Launch Options
Run browser without UI (faster, uses less memory):
Headless mode is ideal for CI/CD pipelines and background automation tasks.
Navigation
The Navigation node controls page navigation and browser history.Navigate to URL
The URL is automatically normalized. If no protocol is specified,
https:// is added automatically.Wait Strategies
ThewaitUntil option controls when navigation is considered complete:
- load
- domcontentloaded
- networkidle
Wait for the
load event (page fully loaded):Browser History
Interacting with Elements
Click Actions
The Action node handles all click-based interactions.Selector Strategies
AutoMFlows supports three selector types:- CSS Selectors
- XPath
- Text Selectors
CSS selectors are the default and most commonly used. Playwright extends CSS with
:has-text() for content matching.Form Input
Use the Form Input node to fill form fields:Drag and Drop
Drag elements to target locations:JavaScript Execution
Execute custom JavaScript code in the browser context:JavaScript nodes have access to the
context object (ContextManager) and page object (Playwright Page).Multi-Tab Management
AutoMFlows supports working with multiple browser tabs:Data Extraction
Extract text, attributes, or element properties:Get Text
Get Attribute
Extract Multiple Elements
Screenshots
Capture screenshots at any point:- Full Page
- Viewport
- Element
Capture entire scrollable page:
Wait Node
Add explicit waits between actions:Use Wait nodes to allow animations to complete or to simulate human-like delays between actions.
Verification
Verify page state after actions:Complete Example
Here’s a complete workflow that demonstrates browser automation:Best Practices
Use Robust Selectors
Prefer data attributes or IDs over fragile class names:
Add Wait Nodes
Insert explicit waits after actions that trigger animations or network requests.
Use networkidle
For SPAs, use
waitUntil: "networkidle" to ensure dynamic content loads.Verify Critical Steps
Add Verify nodes after important actions to catch failures early.
Next Steps
API Testing
Combine browser automation with API testing for end-to-end workflows.
Reports
Generate execution reports with screenshots and performance metrics.
