-
Notifications
You must be signed in to change notification settings - Fork 113
Chrome WebDriver
ODIN uses the Chrome WebDriver with Selenium to create a headless instance of Chrome for a few different purposes. A few tasks require interacting with web services that are very picky about HTTPS headers and CSRF tokens and require JavaScript. The easiest way to interact with these services and avoid being blocked with CAPTCHAs is to use a headless Chrome instance.
You will need the latest WebDriver binary, available here:
Download the latest Chrome WebDriver
You will also need the latest version of Chrome installed. Once you have Chrome installed, launch it at least once to complete setup so headless mode can be used.
If a system lacks Chrome or there is a problem with the binary, ODIN will, for now, fallback to trying to use PhantomJS. This option may go away in the future because PhantomJS is no longer being actively developed. If it comes unreliable, it may just need to be dropped from the project.
PhantomJS must be installed. This can be accomplished easily using package managers:
- macOS:
brew install phantomjs
- Linux:
apt install phantomjs
- Windows:
choco install phantomjs
PhantomJS can be manually installed using downloads available here:
Make sure the downloaded binary is added to your PATH.