You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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
+
<p>🎛️ For extra speed, run your tests using <code>chrome-headless-shell</code>:</p>
2908
+
<p>First, get <code>chrome-headless-shell</code> if you don't already have it:</p>
* <code>"mlatest"</code> (latest version for the milestone)</p>
2971
2979
<p>Note that different options could lead to the same result. (Eg. If you have the latest version of a browser for a milestone, then <code>"browser"</code> and <code>"mlatest"</code> should give you the same driver if the latest driver version for that milestone matches the browser version.)</p>
2972
2980
<hr/>
2981
+
<h3><imgsrc="https://seleniumbase.github.io/img/green_logo.png" title="SeleniumBase" width="32" /> Setting the binary location:</h3>
2982
+
2983
+
<p>🔵 By default, SeleniumBase uses the browser binary detected on the System PATH.</p>
2984
+
<p>🎛️ To change this default behavior, you can use:</p>
<p>The <code>PATH</code> in <code>--binary-location=PATH</code> / <code>--bl=PATH</code> can be:
2988
+
* A relative or exact path to the browser binary.
2989
+
* <code>"cft"</code> as a special option for <code>Chrome for Testing</code>.
2990
+
* <code>"chs"</code> as a special option for <code>Chrome-Headless-Shell</code>.</p>
2991
+
<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>
2992
+
<p>With the <code>SB()</code> and <code>Driver()</code> formats, the binary location is set via the <code>binary_location</code> parameter.</p>
<p>🎛️ An easy way to override <ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py">seleniumbase/config/settings.py</a> is by using a custom settings file.
<p>To run web automation, you need webdrivers for each browser you plan on using. With SeleniumBase, drivers are downloaded automatically (as needed) into the SeleniumBase <code>drivers/</code> folder.</p>
2623
-
<p>You can also download drivers manually with these commands:</p>
2623
+
<p>🎛️ You can also download drivers manually with these commands:</p>
<p>After running the commands above, web drivers will get downloaded into the <code>seleniumbase/drivers/</code> folder. SeleniumBase uses those drivers during tests. (The drivers don't come with SeleniumBase by default.)</p>
2629
2629
<p>If the necessary driver is not found in this location while running tests, SeleniumBase will instead look for the driver on the System PATH. If the necessary driver is not on the System PATH either, SeleniumBase will automatically attempt to download the required driver.</p>
2630
-
<ul>
2631
-
<li>You can also download specific versions of drivers. Examples:</li>
2632
-
</ul>
2630
+
<p>🎛️ You can also download specific versions of drivers. Examples:</p>
<p>To verify that web drivers are working, <strong><ahref="../verify_webdriver/">follow these instructions</a></strong>.</p>
2683
+
<hr/>
2684
+
<p><strong>Browser Binaries</strong>:</p>
2685
+
<p>🎛️ Use the <code>sbase get</code> command to download the <code>Chrome for Testing</code> and <code>Chrome-Headless-Shell</code> browser binaries. Example:</p>
2686
+
<divclass="highlight"><pre><span></span><code>sbase<spanclass="w"></span>get<spanclass="w"></span>cft<spanclass="w"></span><spanclass="c1"># (For `Chrome for Testing`)</span>
0 commit comments