Skip to content

Commit 9065a68

Browse files
committed
Update the docs
1 parent 3bf50d6 commit 9065a68

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

help_docs/customizing_test_runs/index.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2904,12 +2904,13 @@ <h3><img src="https://seleniumbase.github.io/img/green_logo.png" title="Selenium
29042904
<div class="highlight"><pre><span></span><code>pytest<span class="w"> </span>--headless<span class="w"> </span>-n8<span class="w"> </span>--dashboard<span class="w"> </span>--html<span class="o">=</span>report.html<span class="w"> </span>-v<span class="w"> </span>--rs<span class="w"> </span>--crumbs
29052905
</code></pre></div>
29062906
<p>The above not only runs tests in parallel processes, but it also tells tests in the same process to share the same browser session, runs the tests in headless mode, displays the full name of each test on a separate line, creates a real-time dashboard of the test results, and creates a full report after all tests complete.</p>
2907+
<hr />
29072908
<p>🎛️ For extra speed, run your tests using <code>chrome-headless-shell</code>:</p>
29082909
<p>First, get <code>chrome-headless-shell</code> if you don't already have it:</p>
29092910
<div class="highlight"><pre><span></span><code>sbase<span class="w"> </span>get<span class="w"> </span>chs
29102911
</code></pre></div>
2911-
<p>Then, run scripts with <code>binary_location</code> / <code>bl</code> set to <code>"chs"</code>:</p>
2912-
<div class="highlight"><pre><span></span><code>pytest<span class="w"> </span>--bl<span class="o">=</span><span class="s2">&quot;chs&quot;</span><span class="w"> </span>-n8<span class="w"> </span>--dashboard<span class="w"> </span>--html<span class="o">=</span>report.html<span class="w"> </span>-v<span class="w"> </span>--rs
2912+
<p>Then, run scripts with <code>--chs</code> / <code>chs=True</code>:</p>
2913+
<div class="highlight"><pre><span></span><code>pytest<span class="w"> </span>--chs<span class="w"> </span>-n8<span class="w"> </span>--dashboard<span class="w"> </span>--html<span class="o">=</span>report.html<span class="w"> </span>-v<span class="w"> </span>--rs
29132914
</code></pre></div>
29142915
<p>That makes your tests run very quickly in headless mode.</p>
29152916
<hr />
@@ -2991,6 +2992,16 @@ <h3><img src="https://seleniumbase.github.io/img/green_logo.png" title="Selenium
29912992
<p>Before using the <code>"cft"</code> / <code>"chs"</code> options, call <code>sbase get cft</code> / <code>sbase get chs</code> in order to download the specified binaries into the <code>seleniumbase/drivers</code> folder. The default version is the latest stable version on https://googlechromelabs.github.io/chrome-for-testing/. You can change that by specifying the arg as a parameter. (Eg. <code>sbase get cft 131</code>, <code>sbase get chs 132</code>, etc.)</p>
29922993
<p>With the <code>SB()</code> and <code>Driver()</code> formats, the binary location is set via the <code>binary_location</code> parameter.</p>
29932994
<hr />
2995+
<p>🎛️ To use the special <code>Chrome for Testing</code> binary:</p>
2996+
<div class="highlight"><pre><span></span><code>sbase<span class="w"> </span>get<span class="w"> </span>cft
2997+
</code></pre></div>
2998+
<p>Then, run scripts with <code>--cft</code> / <code>cft=True</code>:</p>
2999+
<div class="highlight"><pre><span></span><code>pytest<span class="w"> </span>--cft<span class="w"> </span>-n8<span class="w"> </span>--dashboard<span class="w"> </span>--html<span class="o">=</span>report.html<span class="w"> </span>-v<span class="w"> </span>--rs<span class="w"> </span>--headless
3000+
</code></pre></div>
3001+
<hr />
3002+
<p>(Note that <code>--chs</code> / <code>chs=True</code> activates <code>Chrome-Headless-Shell</code>)</p>
3003+
<p><code>Chrome-Headless-Shell</code> is the fastest version of Chrome, designed specifically for headless automation. (This mode is NOT compatible with UC Mode!)</p>
3004+
<hr />
29943005
<h3><img src="https://seleniumbase.github.io/img/green_logo.png" title="SeleniumBase" width="32" /> Customizing default settings:</h3>
29953006

29963007
<p>🎛️ An easy way to override <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py">seleniumbase/config/settings.py</a> is by using a custom settings file.

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)