Skip to content

Commit 39d8f6d

Browse files
committed
Update the docs
1 parent b5b8259 commit 39d8f6d

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

examples/cdp_mode/playwright/ReadMe/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2979,7 +2979,7 @@ <h1>🎭 Stealthy Playwright</h1>
29792979

29802980
<h2><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.github.io/img/logo6.png" title="SeleniumBase" width="32"></a> Stealthy Playwright Mode 🎭</h2>
29812981

2982-
<p>🎭 <b translate="no">Stealthy Playwright Mode</b> is a subset of <a href="../ReadMe/" translate="no"><b>SeleniumBase CDP Mode</b></a> that launches <a href="https://github.com/microsoft/playwright-python"><b>Playwright</b></a> from an existing <b translate="no">SeleniumBase</b> browser to make <span translate="no">Playwright</span> stealthy (for bypassing bot-detection). <span translate="no">Playwright</span> uses <code><b>connect_over_cdp()</b></code> to attach itself onto an existing <span translate="no">SeleniumBase</span> session via the <code>remote-debugging-port</code>. From here, APIs of both frameworks can be used together.</p>
2982+
<p>🎭 <b translate="no">Stealthy Playwright Mode</b> is a subset of <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/" translate="no"><b>SeleniumBase CDP Mode</b></a> that launches <a href="https://github.com/microsoft/playwright-python"><b>Playwright</b></a> from an existing <b translate="no">SeleniumBase</b> browser to make <span translate="no">Playwright</span> stealthy (for bypassing bot-detection). <span translate="no">Playwright</span> uses <code><b>connect_over_cdp()</b></code> to attach itself onto an existing <span translate="no">SeleniumBase</span> session via the <code>remote-debugging-port</code>. From here, APIs of both frameworks can be used together.</p>
29832983
<hr />
29842984
<h3 id="getting-started-with-stealthy-playwright-mode">🎭 Getting started with <b translate="no">Stealthy Playwright Mode</b>:<a class="headerlink" href="#getting-started-with-stealthy-playwright-mode" title="Permanent link">&para;</a></h3>
29852985
<p>If <code>playwright</code> isn't already installed, then install it first:</p>

help_docs/ReadMe/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2828,7 +2828,7 @@ <h2><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://se
28282828
<a href="https://seleniumbase.io/examples/ReadMe/">📚 Examples</a> |
28292829
<a href="https://seleniumbase.io/help_docs/mobile_testing/">📱 Emulator</a>
28302830
<br />
2831-
<a href="https://seleniumbase.io/seleniumbase/console_scripts/ReadMe/">🌠 Console Scripts</a> |
2831+
<a href="https://seleniumbase.io/seleniumbase/console_scripts/ReadMe/">🪄 Console Scripts</a> |
28322832
<a href="https://seleniumbase.io/seleniumbase/utilities/selenium_grid/ReadMe/">🌐 Grid</a>
28332833
<br />
28342834
<a href="https://seleniumbase.io/help_docs/method_summary/">📘 Methods / APIs</a> |
@@ -2840,14 +2840,14 @@ <h2><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://se
28402840
<a href="https://github.com/seleniumbase/SeleniumBase/tree/master/examples/boilerplates">♻️ Boilerplates</a> |
28412841
<a href="https://seleniumbase.io/help_docs/locale_codes/">🗾 Locale Codes</a>
28422842
<br />
2843-
<a href="https://seleniumbase.io/help_docs/js_package_manager/">🕹️ JS Manager</a> |
2843+
<a href="https://seleniumbase.io/help_docs/js_package_manager/">️ JS Manager</a> |
28442844
<a href="https://seleniumbase.io/examples/visual_testing/ReadMe/">🖼️ Visual Testing</a>
28452845
<br />
28462846
<a href="https://seleniumbase.io/help_docs/translations/">🌏 Translator</a> |
28472847
<a href="https://seleniumbase.io/examples/dialog_boxes/ReadMe/">🛂 Dialog Boxes</a>
28482848
<br />
28492849
<a href="https://seleniumbase.io/help_docs/recorder_mode/">🔴 Recorder</a> |
2850-
<a href="https://seleniumbase.io/devices/?url=seleniumbase.io">💻 Device Farm</a>
2850+
<a href="https://seleniumbase.io/devices/?url=seleniumbase.io">🖥️ Device Farm</a>
28512851
<br />
28522852
<a href="../examples/cdp_mode/playwright/ReadMe/">🎭 Stealthy Playwright Mode</a>
28532853
<br />

help_docs/js_package_manager/index.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2816,7 +2816,7 @@ <h1>🕹️ Package Manager</h1>
28162816

28172817
<h2><img src="https://seleniumbase.github.io/img/logo6.png" title="SeleniumBase" width="32"> JS Package Manager and Code Generators</h2>
28182818

2819-
<h3>🕹️ SeleniumBase lets you load JavaScript packages from any CDN link into any website via Python.</h3>
2819+
<h3>️ SeleniumBase lets you load JavaScript packages from any CDN link into any website via Python.</h3>
28202820

28212821
<p><b>🎨 The following SeleniumBase solutions utilize this feature:</b></p>
28222822
<p>🎦 (<a href="https://seleniumbase.io/help_docs/demo_mode/">Demo Mode</a>)</p>
@@ -2833,7 +2833,7 @@ <h3>🕹️ SeleniumBase lets you load JavaScript packages from any CDN link int
28332833
<div class="highlight"><pre><span></span><code><span class="nb">cd</span><span class="w"> </span>examples/tour_examples
28342834
pytest<span class="w"> </span>maps_introjs_tour.py<span class="w"> </span>--interval<span class="o">=</span><span class="m">1</span>
28352835
</code></pre></div>
2836-
<p>🕹️ SeleniumBase includes powerful JS code generators for converting Python into JavaScript for using the supported JS packages. A few lines of Python in your tests might generate hundreds of lines of JavaScript.</p>
2836+
<p>️ SeleniumBase includes powerful JS code generators for converting Python into JavaScript for using the supported JS packages. A few lines of Python in your tests might generate hundreds of lines of JavaScript.</p>
28372837

28382838
<p>🗺️ Here is some tour code in Python from <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/tour_examples/maps_introjs_tour.py">maps_introjs_tour.py</a> that expands into a lot of JavaScript.</p>
28392839

@@ -2846,17 +2846,17 @@ <h3>🕹️ SeleniumBase lets you load JavaScript packages from any CDN link int
28462846
<span class="bp">self</span><span class="o">.</span><span class="n">export_tour</span><span class="p">(</span><span class="n">filename</span><span class="o">=</span><span class="s2">&quot;maps_introjs_tour.js&quot;</span><span class="p">)</span>
28472847
<span class="bp">self</span><span class="o">.</span><span class="n">play_tour</span><span class="p">()</span>
28482848
</code></pre></div>
2849-
<p><div>🕹️ For existing features, SeleniumBase already takes care of loading all the necessary JS and CSS files into the web browser. To load other packages, here are a few useful methods that you should know about:</div></p>
2849+
<p><div>️ For existing features, SeleniumBase already takes care of loading all the necessary JS and CSS files into the web browser. To load other packages, here are a few useful methods that you should know about:</div></p>
28502850

28512851
<div class="highlight"><pre><span></span><code><span class="bp">self</span><span class="o">.</span><span class="n">add_js_link</span><span class="p">(</span><span class="n">js_link</span><span class="p">)</span>
28522852
</code></pre></div>
2853-
<p><div>🕹️ This example loads the <a href="https://introjs.com/">IntroJS</a> JavaScript library:</div></p>
2853+
<p><div>️ This example loads the <a href="https://introjs.com/">IntroJS</a> JavaScript library:</div></p>
28542854

28552855
<div class="highlight"><pre><span></span><code><span class="bp">self</span><span class="o">.</span><span class="n">add_js_link</span><span class="p">(</span><span class="s2">&quot;https://cdn.jsdelivr.net/npm/[email protected]/intro.min.js&quot;</span><span class="p">)</span>
28562856
</code></pre></div>
2857-
<div>🕹️ You can load any JS package this way as long as you know the URL.</div>
2857+
<div>️ You can load any JS package this way as long as you know the URL.</div>
28582858

2859-
<p>🕹️ If you're wondering how SeleniumBase does this, here's the full Python code from <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/fixtures/js_utils.py">js_utils.py</a>, which uses WebDriver's <code>execute_script()</code> method for making JS calls after escaping quotes with backslashes as needed:</p>
2859+
<p>️ If you're wondering how SeleniumBase does this, here's the full Python code from <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/fixtures/js_utils.py">js_utils.py</a>, which uses WebDriver's <code>execute_script()</code> method for making JS calls after escaping quotes with backslashes as needed:</p>
28602860

28612861
<div class="highlight"><pre><span></span><code><span class="k">def</span><span class="w"> </span><span class="nf">add_js_link</span><span class="p">(</span><span class="n">driver</span><span class="p">,</span> <span class="n">js_link</span><span class="p">):</span>
28622862
<span class="n">script_to_add_js</span> <span class="o">=</span> <span class="p">(</span>
@@ -2874,15 +2874,15 @@ <h3>🕹️ SeleniumBase lets you load JavaScript packages from any CDN link int
28742874
<span class="n">js_link</span> <span class="o">=</span> <span class="n">escape_quotes_if_needed</span><span class="p">(</span><span class="n">js_link</span><span class="p">)</span>
28752875
<span class="n">driver</span><span class="o">.</span><span class="n">execute_script</span><span class="p">(</span><span class="n">script_to_add_js</span> <span class="o">%</span> <span class="n">js_link</span><span class="p">)</span>
28762876
</code></pre></div>
2877-
<p>🕹️ Now that you've loaded JavaScript into the browser, you may also want to load some CSS to go along with it:</p>
2877+
<p>️ Now that you've loaded JavaScript into the browser, you may also want to load some CSS to go along with it:</p>
28782878

28792879
<div class="highlight"><pre><span></span><code><span class="bp">self</span><span class="o">.</span><span class="n">add_css_link</span><span class="p">(</span><span class="n">css_link</span><span class="p">)</span>
28802880
</code></pre></div>
2881-
<p>🕹️ Here's code that loads the <a href="https://introjs.com/">IntroJS</a> CSS:</p>
2881+
<p>️ Here's code that loads the <a href="https://introjs.com/">IntroJS</a> CSS:</p>
28822882

28832883
<div class="highlight"><pre><span></span><code><span class="bp">self</span><span class="o">.</span><span class="n">add_css_link</span><span class="p">(</span><span class="s2">&quot;https://cdnjs.cloudflare.com/ajax/libs/intro.js/2.9.3/introjs.css&quot;</span><span class="p">)</span>
28842884
</code></pre></div>
2885-
<p>🕹️ And here's the Python WebDriver code that makes this possible:</p>
2885+
<p>️ And here's the Python WebDriver code that makes this possible:</p>
28862886

28872887
<div class="highlight"><pre><span></span><code><span class="k">def</span><span class="w"> </span><span class="nf">add_css_link</span><span class="p">(</span><span class="n">driver</span><span class="p">,</span> <span class="n">css_link</span><span class="p">):</span>
28882888
<span class="n">script_to_add_css</span> <span class="o">=</span> <span class="p">(</span>
@@ -2899,7 +2899,7 @@ <h3>🕹️ SeleniumBase lets you load JavaScript packages from any CDN link int
28992899
<span class="n">css_link</span> <span class="o">=</span> <span class="n">escape_quotes_if_needed</span><span class="p">(</span><span class="n">css_link</span><span class="p">)</span>
29002900
<span class="n">driver</span><span class="o">.</span><span class="n">execute_script</span><span class="p">(</span><span class="n">script_to_add_css</span> <span class="o">%</span> <span class="n">css_link</span><span class="p">)</span>
29012901
</code></pre></div>
2902-
<div>🕹️ Website tours are just one of the many uses of the JS Package Manager.</div>
2902+
<div>️ Website tours are just one of the many uses of the JS Package Manager.</div>
29032903
<p><div>🛂 The following example shows the <a href="https://github.com/craftpip/jquery-confirm">JqueryConfirm</a> package loaded into a website for creating fancy dialog boxes:</div></p>
29042904

29052905
<p><img src="https://seleniumbase.github.io/cdn/img/emoji_sports_dialog.png" alt="SeleniumBase" width="480" /></p>
@@ -2913,7 +2913,7 @@ <h4>Here's how to run that example:</h4>
29132913
</code></pre></div>
29142914
<p><div>(Example from the <a href="https://seleniumbase.io/examples/dialog_boxes/ReadMe/">Dialog Boxes ReadMe</a>)</div></p>
29152915

2916-
<div>🕹️ Since packages are loaded directly from a CDN link, you won't need other package managers like NPM, Bower, or Yarn to get the packages that you need into the websites that you want.</div>
2916+
<div>️ Since packages are loaded directly from a CDN link, you won't need other package managers like NPM, Bower, or Yarn to get the packages that you need into the websites that you want.</div>
29172917

29182918
<hr />
29192919
<p><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.github.io/cdn/img/super_logo_sb.png" title="SeleniumBase" width="220"></a></p>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2828,7 +2828,7 @@ <h1>SeleniumBase</h1>
28282828
<a href="help_docs/features_list/">🏰 Features</a> |
28292829
<a href="help_docs/customizing_test_runs/">🎛️ Options</a> |
28302830
<a href="examples/ReadMe/">📚 Examples</a> |
2831-
<a href="seleniumbase/console_scripts/ReadMe/">🌠 Scripts</a> |
2831+
<a href="seleniumbase/console_scripts/ReadMe/">🪄 Scripts</a> |
28322832
<a href="help_docs/mobile_testing/">📱 Mobile</a>
28332833
<br />
28342834
<a href="help_docs/method_summary/">📘 The API</a> |

search/search_index.json

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

seleniumbase/console_scripts/ReadMe/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2812,7 +2812,7 @@
28122812

28132813
<h1>🌠 Console Scripts</h1>
28142814

2815-
<h2><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.github.io/img/logo6.png" title="SeleniumBase" width="32"></a> Console Scripts 🌠</h2>
2815+
<h2><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.github.io/img/logo6.png" title="SeleniumBase" width="32"></a> Console Scripts 🪄</h2>
28162816

28172817
<p>🌟 SeleniumBase console scripts can do many things, such as downloading web drivers, creating test directories with config files, activating the SeleniumBase Recorder, launching the SeleniumBase Commander, translating tests into other languages, running a Selenium Grid, and more.</p>
28182818
<ul>

0 commit comments

Comments
 (0)