Make WebDriver and Chrome headless enabled by default

- webdriver flag now defaults to true (tools always available)
- chrome_headless flag now defaults to true (Chrome is default browser)
- Use --safari flag to override and use Safari instead
- Updated README documentation to reflect new defaults
This commit is contained in:
Dhanji R. Prasanna
2026-01-13 21:14:52 +05:30
parent 151b8c4658
commit c2f96d7048
2 changed files with 9 additions and 9 deletions

View File

@@ -255,11 +255,11 @@ See `config.example.toml` for a complete configuration example.
## WebDriver Browser Automation
g3 includes WebDriver support for browser automation tasks. Safari is the default, with Chrome headless available as an alternative.
g3 includes WebDriver support for browser automation tasks. Chrome headless is the default, with Safari available as an alternative.
**One-Time Setup** (macOS only):
Safari Remote Automation must be enabled before using WebDriver tools. Run this once:
If you want to use Safari instead of Chrome headless, Safari Remote Automation must be enabled. Run this once:
```bash
# Option 1: Use the provided script
@@ -276,11 +276,11 @@ safaridriver --enable # Requires password
**Usage**:
```bash
# Use Safari (default, opens a visible browser window)
g3 --webdriver
# Use Safari (opens a visible browser window)
g3 --safari
# Use Chrome in headless mode (no visible window, runs in background)
g3 --chrome-headless
# Use Chrome in headless mode (default, no visible window, runs in background)
g3
```
**Chrome Setup Options**: