From 741f998801f449d9de4676467a0179e03633d24c Mon Sep 17 00:00:00 2001 From: Matt Gaunt Date: Wed, 23 Aug 2017 08:34:03 -0700 Subject: [PATCH] Adding headless how-to --- docs/how-tos/use-headless-chrome.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 docs/how-tos/use-headless-chrome.md diff --git a/docs/how-tos/use-headless-chrome.md b/docs/how-tos/use-headless-chrome.md new file mode 100644 index 0000000..7e968b9 --- /dev/null +++ b/docs/how-tos/use-headless-chrome.md @@ -0,0 +1,14 @@ +--- +layout: index +title: "Use Headless Chrome" +navigation_weight: 1 +--- +It's possible to use headless Chrome by setting a simple option. + +```javascript +const chromeBrowser = seleniumAssistant.getLocalBrowser('chrome', 'stable'); +const options = chromeBrowser.getSeleniumOptions(); +options.addArguments('--headless'); +``` + +You can learn more [here](https://developers.google.com/web/updates/2017/04/headless-chrome).