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>🎭 <btranslate="no">Stealthy Playwright Mode</b> is a subset of <ahref="../ReadMe/" translate="no"><b>SeleniumBase CDP Mode</b></a> that launches <ahref="https://github.com/microsoft/playwright-python"><b>Playwright</b></a> from an existing <btranslate="no">SeleniumBase</b> browser to make <spantranslate="no">Playwright</span> stealthy (for bypassing bot-detection). <spantranslate="no">Playwright</span> uses <code><b>connect_over_cdp()</b></code> to attach itself onto an existing <spantranslate="no">SeleniumBase</span> session via the <code>remote-debugging-port</code>. From here, APIs of both frameworks can be used together.</p>
2982
+
<p>🎭 <btranslate="no">Stealthy Playwright Mode</b> is a subset of <ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/cdp_mode/" translate="no"><b>SeleniumBase CDP Mode</b></a> that launches <ahref="https://github.com/microsoft/playwright-python"><b>Playwright</b></a> from an existing <btranslate="no">SeleniumBase</b> browser to make <spantranslate="no">Playwright</span> stealthy (for bypassing bot-detection). <spantranslate="no">Playwright</span> uses <code><b>connect_over_cdp()</b></code> to attach itself onto an existing <spantranslate="no">SeleniumBase</span> session via the <code>remote-debugging-port</code>. From here, APIs of both frameworks can be used together.</p>
2983
2983
<hr/>
2984
2984
<h3id="getting-started-with-stealthy-playwright-mode">🎭 Getting started with <btranslate="no">Stealthy Playwright Mode</b>:<aclass="headerlink" href="#getting-started-with-stealthy-playwright-mode" title="Permanent link">¶</a></h3>
2985
2985
<p>If <code>playwright</code> isn't already installed, then install it first:</p>
<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>
2837
2837
2838
2838
<p>🗺️ Here is some tour code in Python from <ahref="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>
2839
2839
@@ -2846,17 +2846,17 @@ <h3>🕹️ SeleniumBase lets you load JavaScript packages from any CDN link int
<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>
<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>
2858
2858
2859
-
<p>🕹️ If you're wondering how SeleniumBase does this, here's the full Python code from <ahref="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 <ahref="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>
<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>
2903
2903
<p><div>🛂 The following example shows the <ahref="https://github.com/craftpip/jquery-confirm">JqueryConfirm</a> package loaded into a website for creating fancy dialog boxes:</div></p>
@@ -2913,7 +2913,7 @@ <h4>Here's how to run that example:</h4>
2913
2913
</code></pre></div>
2914
2914
<p><div>(Example from the <ahref="https://seleniumbase.io/examples/dialog_boxes/ReadMe/">Dialog Boxes ReadMe</a>)</div></p>
2915
2915
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>
<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>
0 commit comments