Skip to content

Commit f89385d

Browse files
committed
Update the docs
1 parent c41ff02 commit f89385d

File tree

6 files changed

+5379
-12
lines changed

6 files changed

+5379
-12
lines changed

examples/cdp_mode/ReadMe/index.html

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@
199199

200200

201201

202+
203+
202204
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
203205
<div class="md-sidebar__scrollwrap">
204206
<div class="md-sidebar__inner">
@@ -2647,7 +2649,9 @@
26472649

26482650

26492651

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>
26512655
<div class="md-sidebar__scrollwrap">
26522656
<div class="md-sidebar__inner">
26532657

@@ -2785,15 +2789,12 @@
27852789

27862790
<h1>🐙 CDP Mode</h1>
27872791

2788-
<!-- SeleniumBase Docs -->
2789-
27902792
<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">&para;</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>
27922794
<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&amp;origin=https://seleniumbase.io&amp;autoplay=0&amp;cc_load_policy=0&amp;cc_lang_pref=&amp;iv_load_policy=1&amp;loop=0&amp;modestbranding=1&amp;rel=0&amp;fs=1&amp;playsinline=0&amp;autohide=2&amp;theme=dark&amp;color=red&amp;controls=1&amp;" 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+
27972798
<hr />
27982799
<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>
27992800
<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<
32303231

32313232

32323233

3234+
3235+
3236+
32333237

32343238

32353239

32363240

32373241

3242+
3243+
32383244

32393245

32403246

examples/master_qa/ReadMe/index.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@
194194

195195

196196

197+
198+
197199
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
198200
<div class="md-sidebar__scrollwrap">
199201
<div class="md-sidebar__inner">
@@ -2509,7 +2511,9 @@
25092511

25102512

25112513

2512-
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
2514+
2515+
2516+
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" hidden>
25132517
<div class="md-sidebar__scrollwrap">
25142518
<div class="md-sidebar__inner">
25152519

@@ -2534,8 +2538,6 @@
25342538

25352539
<h1>🛂 MasterQA Mode</h1>
25362540

2537-
<!-- SeleniumBase Docs -->
2538-
25392541
<p><img alt="" src="https://seleniumbase.github.io/cdn/img/masterqa_logo.png" title="MasterQA" /></p>
25402542
<h3><img src="https://seleniumbase.github.io/img/logo6.png" title="SeleniumBase" width="32" /> MasterQA combines automation with manual verification steps.</h3>
25412543

@@ -2583,11 +2585,16 @@ <h3><img src="https://seleniumbase.github.io/img/logo6.png" title="SeleniumBase"
25832585

25842586

25852587

2588+
2589+
2590+
25862591

25872592

25882593

25892594

25902595

2596+
2597+
25912598

25922599

25932600

0 commit comments

Comments
 (0)