Make Chrome headless the default WebDriver browser
- Add --safari flag to CLI for explicitly choosing Safari - Update --chrome-headless flag description to indicate it's the default - Update README to reflect Chrome headless as default - Remove broken link to non-existent docs/webdriver-setup.md - Add Safari flag handling in all webdriver config locations The config already had ChromeHeadless as the default, this commit updates the CLI and documentation to match.
This commit is contained in:
17
README.md
17
README.md
@@ -245,7 +245,7 @@ See `config.example.toml` for a complete configuration example.
|
||||
|
||||
## WebDriver Browser Automation
|
||||
|
||||
G3 includes WebDriver support for browser automation tasks using Safari.
|
||||
G3 includes WebDriver support for browser automation tasks. Chrome headless is the default (no visible browser window), with Safari available as an alternative.
|
||||
|
||||
**One-Time Setup** (macOS only):
|
||||
|
||||
@@ -263,9 +263,20 @@ safaridriver --enable # Requires password
|
||||
# Then: Develop → Allow Remote Automation
|
||||
```
|
||||
|
||||
**For detailed setup instructions and troubleshooting**, see [WebDriver Setup Guide](docs/webdriver-setup.md).
|
||||
**Usage**:
|
||||
|
||||
**Usage**: Run G3 with the `--webdriver` flag to enable browser automation tools.
|
||||
```bash
|
||||
# Use Chrome in headless mode (default, no visible window, runs in background)
|
||||
g3 --webdriver
|
||||
|
||||
# Use Safari (opens a visible browser window)
|
||||
g3 --webdriver --safari
|
||||
```
|
||||
|
||||
**Chrome Headless Setup**: Install ChromeDriver:
|
||||
- macOS: `brew install chromedriver`
|
||||
- Linux: `apt install chromium-chromedriver`
|
||||
- Or download from: https://chromedriver.chromium.org/downloads
|
||||
|
||||
## macOS Accessibility API Tools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user