.</span><span class="n">add_argument</span><span class="p">(</span><span class="s1">&#39;--headless&#39;</span><span class="p">)</span>

    <span class="c1"># if the environment variables are set, use them</span>
    <span class="n">chrome_path</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;CHROME_PATH&quot;</span><span class="p">,</span> <span cla