Troubleshooting¶
ChromeDriver Won't Start¶
Verify that the required binaries are installed:
Check versions:
If not installed:
Session Creation Fails¶
On Termux, chromium-browser and chromedriver must be the same version.
Upgrade both:
Port Already in Use¶
If port 9515 is occupied, use a different port:
Sandbox Permission Errors¶
CDriv starts with --no-sandbox by default, which is required on Termux
and containers. If you still get errors, confirm chromium was installed correctly.
5 Common Errors¶
| Error | Cause | Solution |
|---|---|---|
ChromeDriver did not start in time |
chromedriver not found or port busy | Install chromedriver, change port |
No active session |
Forgot to call new_session() |
Call driver.new_session() before navigating |
Failed to create session |
Chromium not found or version mismatch | Install chromium-browser or provide the path |
| Timeout | Slow page | Increase timeout or use wait_for_navigation() |
| Connection error | ChromeDriver not running | Call driver.start() or use with CDriv() |