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
<h3id="proxy-with-auth-in-stealthy-playwright-mode">🎭 Proxy with auth in <btranslate="no">Stealthy Playwright Mode</b>:<aclass="headerlink" href="#proxy-with-auth-in-stealthy-playwright-mode" title="Permanent link">¶</a></h3>
3083
-
<p>To use an authenticated proxy in Stealthy Playwright Mode, <strong>do these two things</strong>:
3084
-
<strong>1.</strong> Set the<code>proxy</code> arg when launching Chrome.
3085
-
-- Eg: <code>sb_cdp.Chrome(proxy="USER:PASS@IP:PORT")</code> or <code>cdp_driver.start_async("USER:PASS@IP:PORT")</code>.
3086
-
<strong>2.</strong> Open the URL with SeleniumBase <strong>before</strong> using <code>endpoint_url</code> to connect to the browser with Playwright.</p>
3083
+
<p>To use an authenticated proxy in Stealthy Playwright Mode, <strong>do these two things</strong>:<br/><strong>1.</strong> Set the<code>proxy</code> arg when launching Chrome.
3084
+
-- Eg: <code>sb_cdp.Chrome(proxy="USER:PASS@IP:PORT")</code> or <code>cdp_driver.start_async("USER:PASS@IP:PORT")</code>.<br/><strong>2.</strong> Open the URL with SeleniumBase <strong>before</strong> using <code>endpoint_url</code> to connect to the browser with Playwright.</p>
3087
3085
<p>⚠️ If any trouble with the above, set <code>use_chromium=True</code> so that you can use the base Chromium browser, which still allows extensions, unlike regular branded Chrome, which removed the <code>--load-extension</code> command-line switch. (<em>An extension is used to set the auth for the proxy, which is needed when CDP can't set the proxy alone, such as for navigation after the initial page load</em>).</p>
3088
3086
<p>In the sync format, use <code>sb.open(url)</code> to open the url before connecting Playwright:
<p>Here's an example of using an authenticated proxy with Stealthy Playwright Mode:
3101
-
(The URL is opened before attaching Playwright so that proxy settings take effect)
3098
+
<p>Here's an example of using an authenticated proxy with Stealthy Playwright Mode:<br/>(The URL is opened before attaching Playwright so that proxy settings take effect)
0 commit comments