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">SeleniumBase</b><btranslate="no">CDP Mode</b>(<ahref="https://chromedevtools.github.io/devtools-protocol/" translate="no"><spantranslate="no">Chrome Devtools Protocol</span></a>Mode) is a special mode inside of <b><ahref="../../../help_docs/uc_mode/" translate="no"><spantranslate="no">SeleniumBase UC Mode</span></a></b> that lets bots appear human while controlling the browser with <btranslate="no">CDP</b>(via <ahref="https://github.com/mdmintz/MyCDP" translate="no"><spantranslate="no">MyCDP</span></a>). Although regular <btranslate="no">UC Mode</b> can't perform <spantranslate="no">WebDriver</span> actions while the <code>driver</code> is disconnected from the browser, <btranslate="no">CDP</b> can. <btranslate="no">CDP Mode</b> can also be used independently of WebDriver via <b><ahref="#Pure_CDP_Mode" translate="no">Pure CDP Mode</a></b> (<code>sb_cdp</code>).</p>
2954
+
<p>🐙 <btranslate="no">SeleniumBase</b><btranslate="no">CDP Mode</b>is a stealth mode of SeleniumBase that uses the <ahref="https://chromedevtools.github.io/devtools-protocol/" translate="no"><spantranslate="no">Chrome Devtools Protocol</span></a>(via <ahref="https://github.com/mdmintz/MyCDP" translate="no"><spantranslate="no">MyCDP</span></a>) to control the web browser. <btranslate="no">CDP Mode</b>can be used either as a subset of <b><ahref="../../../help_docs/uc_mode/" translate="no"><spantranslate="no">SeleniumBase UC Mode</span></a></b>, or via <b><ahref="#Pure_CDP_Mode" translate="no">Pure CDP Mode</a></b> (<code>sb_cdp</code>), which doesn't use WebDriver at all, and has a slightly different setup.</p>
<spanclass="n">sb</span><spanclass="o">.</span><spanclass="n">type</span><spanclass="p">(</span><spanclass="s1">'[name="q"]'</span><spanclass="p">,</span><spanclass="s2">"SeleniumBase on GitHub</span><spanclass="se">\n</span><spanclass="s2">"</span><spanclass="p">)</span>
Copy file name to clipboardExpand all lines: index.html
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2823,16 +2823,18 @@ <h1>SeleniumBase</h1>
2823
2823
<p>🐙 Stealth modes: <atranslate="no" href="help_docs/uc_mode/"><b>UC Mode</b></a> and <atranslate="no" href="examples/cdp_mode/ReadMe/"><b>CDP Mode</b></a> help you evade bot-detection.</p>
2824
2824
<p>ℹ️ Most scripts run with raw <codetranslate="no"><b>python</b></code>, although some scripts use <ahref="help_docs/syntax_formats/">Syntax Formats</a> that expect <ahref="https://docs.pytest.org/en/latest/how-to/usage.html" translate="no"><b>pytest</b></a> (a Python unit-testing framework included with SeleniumBase that can discover, collect, and run tests automatically).</p>
2825
2825
<hr/>
2826
-
<palign="left">📗 Here's a test script that performs a Google Search using SeleniumBase UC Mode:<br/><ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/raw_google.py">SeleniumBase/examples/raw_google.py</a> (Results are saved as PDF, HTML, and PNG)</p>
2826
+
<palign="left">📗 This script performs a Google Search using SeleniumBase UC Mode + CDP Mode:<br/><ahref="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/raw_google.py">SeleniumBase/examples/raw_google.py</a> (Results are saved as PDF, HTML, and PNG)</p>
<spanclass="n">sb</span><spanclass="o">.</span><spanclass="n">sleep</span><spanclass="p">(</span><spanclass="mi">2</span><spanclass="p">)</span><spanclass="c1"># Wait for the "AI Overview" result</span>
2837
+
<spanclass="n">sb</span><spanclass="o">.</span><spanclass="n">sleep</span><spanclass="p">(</span><spanclass="mi">1</span><spanclass="p">)</span><spanclass="c1"># Wait for the "AI Overview" result</span>
<spanclass="n">sb</span><spanclass="o">.</span><spanclass="n">save_as_pdf_to_logs</span><spanclass="p">()</span><spanclass="c1"># Saved to ./latest_logs/</span>
0 commit comments