|
199 | 199 |
|
200 | 200 |
|
201 | 201 |
|
| 202 | + |
| 203 | + |
202 | 204 | <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
|
203 | 205 | <div class="md-sidebar__scrollwrap">
|
204 | 206 | <div class="md-sidebar__inner">
|
|
2647 | 2649 |
|
2648 | 2650 |
|
2649 | 2651 |
|
2650 |
| - <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" > |
| 2652 | + |
| 2653 | + |
| 2654 | + <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" hidden> |
2651 | 2655 | <div class="md-sidebar__scrollwrap">
|
2652 | 2656 | <div class="md-sidebar__inner">
|
2653 | 2657 |
|
|
2785 | 2789 |
|
2786 | 2790 | <h1>🐙 CDP Mode</h1>
|
2787 | 2791 |
|
2788 |
| -<!-- SeleniumBase Docs --> |
2789 |
| - |
2790 | 2792 | <h2 id="cdp-mode"><a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.github.io/img/logo6.png" title="SeleniumBase" width="32"></a> CDP Mode 🐙<a class="headerlink" href="#cdp-mode" title="Permanent link">¶</a></h2>
|
2791 |
| -<p>🐙 <b translate="no">SeleniumBase</b> <b translate="no">CDP Mode</b> (Chrome Devtools Protocol Mode) is a special mode inside of <b><a href="../../help_docs/uc_mode.md" translate="no"><span translate="no">SeleniumBase UC Mode</span></a></b> that lets bots appear human while controlling the browser with the <b translate="no">CDP-Driver</b>. Although regular <span translate="no">UC Mode</span> can't perform <span translate="no">WebDriver</span> actions while the <code>driver</code> is disconnected from the browser, the <span translate="no">CDP-Driver</span> can still perform actions while maintaining its cover.</p> |
| 2793 | +<p>🐙 <b translate="no">SeleniumBase</b> <b translate="no">CDP Mode</b> (Chrome Devtools Protocol Mode) is a special mode inside of <b><a href="../../help_docs/uc_mode/" translate="no"><span translate="no">SeleniumBase UC Mode</span></a></b> that lets bots appear human while controlling the browser with the <b translate="no">CDP-Driver</b>. Although regular <span translate="no">UC Mode</span> can't perform <span translate="no">WebDriver</span> actions while the <code>driver</code> is disconnected from the browser, the <span translate="no">CDP-Driver</span> can still perform actions while maintaining its cover.</p> |
2792 | 2794 | <hr />
|
2793 |
| -<!-- YouTube View --> |
2794 |
| -<p><a href="https://www.youtube.com/watch?v=Mr90iQmNsKM"></a></p> |
2795 |
| -<p><img src="http://img.youtube.com/vi/Mr90iQmNsKM/0.jpg" title="SeleniumBase on YouTube" width="366" /><p>(<b><a href="https://www.youtube.com/watch?v=Mr90iQmNsKM">Watch the CDP Mode tutorial on YouTube! ▶️</a></b>)</p> |
2796 |
| -</p> |
| 2795 | +<figure class="wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube"><div class="wp-block-embed__wrapper"><div class="epyt-video-wrapper fluid-width-video-wrapper" style="padding-top: 3px !important;"><iframe loading="lazy" id="_ytid_36718" data-origwidth="1200" data-origheight="675" src="https://www.youtube.com/embed/Mr90iQmNsKM?enablejsapi=1&origin=https://seleniumbase.io&autoplay=0&cc_load_policy=0&cc_lang_pref=&iv_load_policy=1&loop=0&modestbranding=1&rel=0&fs=1&playsinline=0&autohide=2&theme=dark&color=red&controls=1&" class="__youtube_prefs__ no-lazyload" title="YouTube player" allow="autoplay; encrypted-media" allowfullscreen="" data-no-lazy="1" data-skipgform_ajax_framebjll=""></iframe></div></div></figure> |
| 2796 | +<p>(<b><a href="https://www.youtube.com/watch?v=Mr90iQmNsKM">Watch the CDP Mode tutorial on YouTube! ▶️</a></b>)</p> |
| 2797 | + |
2797 | 2798 | <hr />
|
2798 | 2799 | <p>👤 <b translate="no">UC Mode</b> avoids bot-detection by first disconnecting WebDriver from the browser at strategic times, calling special <code>PyAutoGUI</code> methods to bypass CAPTCHAs (as needed), and finally reconnecting the <code>driver</code> afterwards so that WebDriver actions can be performed again. Although this approach works for bypassing simple CAPTCHAs, more flexibility is needed for bypassing bot-detection on websites with advanced protection. (That's where <b translate="no">CDP Mode</b> comes in.)</p>
|
2799 | 2800 | <p>🐙 <b translate="no">CDP Mode</b> is based on <a href="https://github.com/HyperionGray/python-chrome-devtools-protocol" translate="no">python-cdp</a>, <a href="https://github.com/HyperionGray/trio-chrome-devtools-protocol" translate="no">trio-cdp</a>, and <a href="https://github.com/ultrafunkamsterdam/nodriver" translate="no">nodriver</a>. <code>trio-cdp</code> is an early implementation of <code>python-cdp</code>, and <code>nodriver</code> is a modern implementation of <code>python-cdp</code>. (Refactored Python-CDP code is imported from <a href="https://github.com/mdmintz/MyCDP" translate="no">MyCDP</a>.)</p>
|
@@ -3230,11 +3231,16 @@ <h3 id="cdp-mode-webelement-api-methods">🐙 CDP Mode WebElement API / Methods<
|
3230 | 3231 |
|
3231 | 3232 |
|
3232 | 3233 |
|
| 3234 | + |
| 3235 | + |
| 3236 | + |
3233 | 3237 |
|
3234 | 3238 |
|
3235 | 3239 |
|
3236 | 3240 |
|
3237 | 3241 |
|
| 3242 | + |
| 3243 | + |
3238 | 3244 |
|
3239 | 3245 |
|
3240 | 3246 |
|
|
0 commit comments