<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Selenium: Attach to an Existing Chrome Browser with C#	</title>
	<atom:link href="https://intellitect.com/blog/selenium-chrome-csharp/feed/" rel="self" type="application/rss+xml" />
	<link>https://intellitect.com/blog/selenium-chrome-csharp/</link>
	<description>Complex Software Development - Simplified</description>
	<lastBuildDate>Fri, 03 Mar 2023 17:59:42 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Mike		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-390128</link>

		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Fri, 03 Mar 2023 17:59:42 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-390128</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-390117&quot;&gt;Akhila T v&lt;/a&gt;.

Hi Akhila, I&#039;ll double check with the latest version of Selenium and update the repo (and respond here) if I can get it to work again. Check back in a few days, please!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-390117">Akhila T v</a>.</p>
<p>Hi Akhila, I&#8217;ll double check with the latest version of Selenium and update the repo (and respond here) if I can get it to work again. Check back in a few days, please!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Akhila T v		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-390117</link>

		<dc:creator><![CDATA[Akhila T v]]></dc:creator>
		<pubDate>Thu, 02 Mar 2023 12:53:28 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-390117</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-389862&quot;&gt;Mike&lt;/a&gt;.

Hi, this is not working for me.. Not able to connect to the edge browser]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-389862">Mike</a>.</p>
<p>Hi, this is not working for me.. Not able to connect to the edge browser</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Akhila T v		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-390095</link>

		<dc:creator><![CDATA[Akhila T v]]></dc:creator>
		<pubDate>Tue, 28 Feb 2023 10:17:13 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-390095</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-389870&quot;&gt;Mike&lt;/a&gt;.

Hi Mike, thank you for considering my request.. I will check this and revert you]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-389870">Mike</a>.</p>
<p>Hi Mike, thank you for considering my request.. I will check this and revert you</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-389870</link>

		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Sat, 19 Nov 2022 00:09:35 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-389870</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-389842&quot;&gt;Akhila&lt;/a&gt;.

Hello again! Looks like the easiest path to attaching to Edge is upgrading to Selenium 4. Once you upgrade, the code is almost exactly the same as above. Launch Edge with the following options:

--remote-debugging-port=9222 --user-data-dir=C:\\Temp

And then create your driver with the corresponding edge option:

EdgeOptions options = new EdgeOptions();
options.DebuggerAddress = &quot;127.0.0.1:9222&quot;;
Driver = new EdgeDriver(options);

Let me know if that works out for you!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-389842">Akhila</a>.</p>
<p>Hello again! Looks like the easiest path to attaching to Edge is upgrading to Selenium 4. Once you upgrade, the code is almost exactly the same as above. Launch Edge with the following options:</p>
<p>&#8211;remote-debugging-port=9222 &#8211;user-data-dir=C:\\Temp</p>
<p>And then create your driver with the corresponding edge option:</p>
<p>EdgeOptions options = new EdgeOptions();<br />
options.DebuggerAddress = &#8220;127.0.0.1:9222&#8221;;<br />
Driver = new EdgeDriver(options);</p>
<p>Let me know if that works out for you!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-389862</link>

		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Fri, 18 Nov 2022 17:18:27 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-389862</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-389842&quot;&gt;Akhila&lt;/a&gt;.

Hi Akhila, I&#039;ll tinker with the above posted code to see how Edge behaves. I&#039;ll get back to you in the next day or two!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-389842">Akhila</a>.</p>
<p>Hi Akhila, I&#8217;ll tinker with the above posted code to see how Edge behaves. I&#8217;ll get back to you in the next day or two!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Akhila		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-389842</link>

		<dc:creator><![CDATA[Akhila]]></dc:creator>
		<pubDate>Thu, 17 Nov 2022 12:37:34 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-389842</guid>

					<description><![CDATA[Hi, i neef to connect to opened edge browser in selenium c#. Is there any solution?
Thank you!]]></description>
			<content:encoded><![CDATA[<p>Hi, i neef to connect to opened edge browser in selenium c#. Is there any solution?<br />
Thank you!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Curn		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386441</link>

		<dc:creator><![CDATA[Mike Curn]]></dc:creator>
		<pubDate>Wed, 10 Nov 2021 02:22:52 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386441</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-386413&quot;&gt;Tyson&lt;/a&gt;.

 Hi Tyson,
Sorry for the delay. I looked around a bit but couldn&#039;t find much beyond changing Windows&#039;s proxy settings:
https://stackoverflow.com/questions/50777994/how-to-change-chrome-proxy-via-command-line-windows
https://proxyway.com/guides/chrome-proxy-setup

I did find some help articles around this, so it doesn&#039;t appear to be an isolated concern:
https://social.technet.microsoft.com/Forums/windows/en-US/71e16dd7-f65a-4930-82ad-015c6021eb10/unable-to-change-proxy-settings-in-nonieedge-browsers

I&#039;ll keep trying to find some answers. Sorry I haven&#039;t been more helpful on this!

Thanks,
Mike Curn]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-386413">Tyson</a>.</p>
<p> Hi Tyson,<br />
Sorry for the delay. I looked around a bit but couldn&#8217;t find much beyond changing Windows&#8217;s proxy settings:<br />
<a href="https://stackoverflow.com/questions/50777994/how-to-change-chrome-proxy-via-command-line-windows" rel="nofollow ugc">https://stackoverflow.com/questions/50777994/how-to-change-chrome-proxy-via-command-line-windows</a><br />
<a href="https://proxyway.com/guides/chrome-proxy-setup" rel="nofollow ugc">https://proxyway.com/guides/chrome-proxy-setup</a></p>
<p>I did find some help articles around this, so it doesn&#8217;t appear to be an isolated concern:<br />
<a href="https://social.technet.microsoft.com/Forums/windows/en-US/71e16dd7-f65a-4930-82ad-015c6021eb10/unable-to-change-proxy-settings-in-nonieedge-browsers" rel="nofollow ugc">https://social.technet.microsoft.com/Forums/windows/en-US/71e16dd7-f65a-4930-82ad-015c6021eb10/unable-to-change-proxy-settings-in-nonieedge-browsers</a></p>
<p>I&#8217;ll keep trying to find some answers. Sorry I haven&#8217;t been more helpful on this!</p>
<p>Thanks,<br />
Mike Curn</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Curn		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386404</link>

		<dc:creator><![CDATA[Mike Curn]]></dc:creator>
		<pubDate>Wed, 10 Nov 2021 02:22:52 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386404</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-386399&quot;&gt;Tyson&lt;/a&gt;.

 Hi Tyson,
Sorry for the delay. I looked around a bit but couldn&#039;t find much beyond changing Windows&#039;s proxy settings:
https://stackoverflow.com/questions/50777994/how-to-change-chrome-proxy-via-command-line-windows
https://proxyway.com/guides/chrome-proxy-setup

I did find some help articles around this, so it doesn&#039;t appear to be an isolated concern:
https://social.technet.microsoft.com/Forums/windows/en-US/71e16dd7-f65a-4930-82ad-015c6021eb10/unable-to-change-proxy-settings-in-nonieedge-browsers

I&#039;ll keep trying to find some answers. Sorry I haven&#039;t been more helpful on this!

Thanks,
Mike Curn]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-386399">Tyson</a>.</p>
<p> Hi Tyson,<br />
Sorry for the delay. I looked around a bit but couldn&#8217;t find much beyond changing Windows&#8217;s proxy settings:<br />
<a href="https://stackoverflow.com/questions/50777994/how-to-change-chrome-proxy-via-command-line-windows" rel="nofollow ugc">https://stackoverflow.com/questions/50777994/how-to-change-chrome-proxy-via-command-line-windows</a><br />
<a href="https://proxyway.com/guides/chrome-proxy-setup" rel="nofollow ugc">https://proxyway.com/guides/chrome-proxy-setup</a></p>
<p>I did find some help articles around this, so it doesn&#8217;t appear to be an isolated concern:<br />
<a href="https://social.technet.microsoft.com/Forums/windows/en-US/71e16dd7-f65a-4930-82ad-015c6021eb10/unable-to-change-proxy-settings-in-nonieedge-browsers" rel="nofollow ugc">https://social.technet.microsoft.com/Forums/windows/en-US/71e16dd7-f65a-4930-82ad-015c6021eb10/unable-to-change-proxy-settings-in-nonieedge-browsers</a></p>
<p>I&#8217;ll keep trying to find some answers. Sorry I haven&#8217;t been more helpful on this!</p>
<p>Thanks,<br />
Mike Curn</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Curn		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386440</link>

		<dc:creator><![CDATA[Mike Curn]]></dc:creator>
		<pubDate>Wed, 10 Nov 2021 02:20:57 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386440</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-386412&quot;&gt;Uoni&lt;/a&gt;.

 Hi again Uoni,
Sorry for the delay. I did some poking around online but so far have only been able to find references to changing Windows&#039;s proxy settings, not just Chrome&#039;s:
https://stackoverflow.com/questions/50777994/how-to-change-chrome-proxy-via-command-line-windows
https://proxyway.com/guides/chrome-proxy-setup

There&#039;s even some help articles around this:
https://social.technet.microsoft.com/Forums/windows/en-US/71e16dd7-f65a-4930-82ad-015c6021eb10/unable-to-change-proxy-settings-in-nonieedge-browsers

I&#039;ll keep trying to plug away at this, but unfortunately I&#039;m not sure when I&#039;ll find (or if I&#039;ll find) a better answer. :(

Thanks,
Mike Curn]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-386412">Uoni</a>.</p>
<p> Hi again Uoni,<br />
Sorry for the delay. I did some poking around online but so far have only been able to find references to changing Windows&#8217;s proxy settings, not just Chrome&#8217;s:<br />
<a href="https://stackoverflow.com/questions/50777994/how-to-change-chrome-proxy-via-command-line-windows" rel="nofollow ugc">https://stackoverflow.com/questions/50777994/how-to-change-chrome-proxy-via-command-line-windows</a><br />
<a href="https://proxyway.com/guides/chrome-proxy-setup" rel="nofollow ugc">https://proxyway.com/guides/chrome-proxy-setup</a></p>
<p>There&#8217;s even some help articles around this:<br />
<a href="https://social.technet.microsoft.com/Forums/windows/en-US/71e16dd7-f65a-4930-82ad-015c6021eb10/unable-to-change-proxy-settings-in-nonieedge-browsers" rel="nofollow ugc">https://social.technet.microsoft.com/Forums/windows/en-US/71e16dd7-f65a-4930-82ad-015c6021eb10/unable-to-change-proxy-settings-in-nonieedge-browsers</a></p>
<p>I&#8217;ll keep trying to plug away at this, but unfortunately I&#8217;m not sure when I&#8217;ll find (or if I&#8217;ll find) a better answer. :(</p>
<p>Thanks,<br />
Mike Curn</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Curn		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386403</link>

		<dc:creator><![CDATA[Mike Curn]]></dc:creator>
		<pubDate>Wed, 10 Nov 2021 02:20:57 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386403</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-386398&quot;&gt;Uoni&lt;/a&gt;.

 Hi again Uoni,
Sorry for the delay. I did some poking around online but so far have only been able to find references to changing Windows&#039;s proxy settings, not just Chrome&#039;s:
https://stackoverflow.com/questions/50777994/how-to-change-chrome-proxy-via-command-line-windows
https://proxyway.com/guides/chrome-proxy-setup

There&#039;s even some help articles around this:
https://social.technet.microsoft.com/Forums/windows/en-US/71e16dd7-f65a-4930-82ad-015c6021eb10/unable-to-change-proxy-settings-in-nonieedge-browsers

I&#039;ll keep trying to plug away at this, but unfortunately I&#039;m not sure when I&#039;ll find (or if I&#039;ll find) a better answer. :(

Thanks,
Mike Curn]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-386398">Uoni</a>.</p>
<p> Hi again Uoni,<br />
Sorry for the delay. I did some poking around online but so far have only been able to find references to changing Windows&#8217;s proxy settings, not just Chrome&#8217;s:<br />
<a href="https://stackoverflow.com/questions/50777994/how-to-change-chrome-proxy-via-command-line-windows" rel="nofollow ugc">https://stackoverflow.com/questions/50777994/how-to-change-chrome-proxy-via-command-line-windows</a><br />
<a href="https://proxyway.com/guides/chrome-proxy-setup" rel="nofollow ugc">https://proxyway.com/guides/chrome-proxy-setup</a></p>
<p>There&#8217;s even some help articles around this:<br />
<a href="https://social.technet.microsoft.com/Forums/windows/en-US/71e16dd7-f65a-4930-82ad-015c6021eb10/unable-to-change-proxy-settings-in-nonieedge-browsers" rel="nofollow ugc">https://social.technet.microsoft.com/Forums/windows/en-US/71e16dd7-f65a-4930-82ad-015c6021eb10/unable-to-change-proxy-settings-in-nonieedge-browsers</a></p>
<p>I&#8217;ll keep trying to plug away at this, but unfortunately I&#8217;m not sure when I&#8217;ll find (or if I&#8217;ll find) a better answer. :(</p>
<p>Thanks,<br />
Mike Curn</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Curn		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386418</link>

		<dc:creator><![CDATA[Mike Curn]]></dc:creator>
		<pubDate>Thu, 07 Oct 2021 20:01:01 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386418</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-386413&quot;&gt;Tyson&lt;/a&gt;.

 Hi Tyson,
Assuming you&#039;re on Windows, it almost looks like Chrome is inheriting its proxy settings from Windows. I need to do a bit more research on this to be sure, though. Hopefully I&#039;ll have something useful next week!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-386413">Tyson</a>.</p>
<p> Hi Tyson,<br />
Assuming you&#8217;re on Windows, it almost looks like Chrome is inheriting its proxy settings from Windows. I need to do a bit more research on this to be sure, though. Hopefully I&#8217;ll have something useful next week!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Curn		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386401</link>

		<dc:creator><![CDATA[Mike Curn]]></dc:creator>
		<pubDate>Thu, 07 Oct 2021 20:01:01 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386401</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-386399&quot;&gt;Tyson&lt;/a&gt;.

 Hi Tyson,
Assuming you&#039;re on Windows, it almost looks like Chrome is inheriting its proxy settings from Windows. I need to do a bit more research on this to be sure, though. Hopefully I&#039;ll have something useful next week!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-386399">Tyson</a>.</p>
<p> Hi Tyson,<br />
Assuming you&#8217;re on Windows, it almost looks like Chrome is inheriting its proxy settings from Windows. I need to do a bit more research on this to be sure, though. Hopefully I&#8217;ll have something useful next week!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Curn		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386417</link>

		<dc:creator><![CDATA[Mike Curn]]></dc:creator>
		<pubDate>Thu, 07 Oct 2021 19:59:29 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386417</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-386412&quot;&gt;Uoni&lt;/a&gt;.

 Hi Uoni,
Sorry for the delay. I ended up needing to grab your code and do a bit of testing. It looks like (assuming you&#039;re on Windows,) Chrome is taking proxy settings from Window&#039;s proxy settings. I&#039;ll need to do a bit more research to see if this is true and how to get around it. Hopefully I&#039;ll have something more for you next week!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-386412">Uoni</a>.</p>
<p> Hi Uoni,<br />
Sorry for the delay. I ended up needing to grab your code and do a bit of testing. It looks like (assuming you&#8217;re on Windows,) Chrome is taking proxy settings from Window&#8217;s proxy settings. I&#8217;ll need to do a bit more research to see if this is true and how to get around it. Hopefully I&#8217;ll have something more for you next week!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Curn		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386400</link>

		<dc:creator><![CDATA[Mike Curn]]></dc:creator>
		<pubDate>Thu, 07 Oct 2021 19:59:29 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386400</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-386398&quot;&gt;Uoni&lt;/a&gt;.

 Hi Uoni,
Sorry for the delay. I ended up needing to grab your code and do a bit of testing. It looks like (assuming you&#039;re on Windows,) Chrome is taking proxy settings from Window&#039;s proxy settings. I&#039;ll need to do a bit more research to see if this is true and how to get around it. Hopefully I&#039;ll have something more for you next week!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-386398">Uoni</a>.</p>
<p> Hi Uoni,<br />
Sorry for the delay. I ended up needing to grab your code and do a bit of testing. It looks like (assuming you&#8217;re on Windows,) Chrome is taking proxy settings from Window&#8217;s proxy settings. I&#8217;ll need to do a bit more research to see if this is true and how to get around it. Hopefully I&#8217;ll have something more for you next week!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tyson		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386413</link>

		<dc:creator><![CDATA[Tyson]]></dc:creator>
		<pubDate>Sun, 03 Oct 2021 22:55:41 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386413</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-378228&quot;&gt;Mike Curn&lt;/a&gt;.

 What is  wrong about the code.. 

I&#039;m trying to control proxy into the local server chrome via C#

{
    Process proc = new Process();
    proc.StartInfo.FileName = @&quot;C:Program FilesGoogleChromeApplicationchrome.exe&quot;;
    proc.StartInfo.Arguments = @&quot;--remote-debugging-port=9222 --user-data-dir=C:APIlocalhost&quot;;
    proc.Start();


    string url = &quot;https://www.ipleak.net/&quot;;

    IWebDriver driver;
    ChromeOptions options = new ChromeOptions();
    options.DebuggerAddress = &quot;localhost:9222&quot;;
    options.AddArgument(&quot;--proxy-server=8.8.8.8:8080&quot;);
    driver = new ChromeDriver(options);
    driver.Navigate.GoToUrl(url);
}]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-378228">Mike Curn</a>.</p>
<p> What is  wrong about the code.. </p>
<p>I&#8217;m trying to control proxy into the local server chrome via C#</p>
<p>{<br />
    Process proc = new Process();<br />
    proc.StartInfo.FileName = @&#8221;C:Program FilesGoogleChromeApplicationchrome.exe&#8221;;<br />
    proc.StartInfo.Arguments = @&#8221;&#8211;remote-debugging-port=9222 &#8211;user-data-dir=C:APIlocalhost&#8221;;<br />
    proc.Start();</p>
<p>    string url = &#8220;https://www.ipleak.net/&#8221;;</p>
<p>    IWebDriver driver;<br />
    ChromeOptions options = new ChromeOptions();<br />
    options.DebuggerAddress = &#8220;localhost:9222&#8221;;<br />
    options.AddArgument(&#8220;&#8211;proxy-server=8.8.8.8:8080&#8221;);<br />
    driver = new ChromeDriver(options);<br />
    driver.Navigate.GoToUrl(url);<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tyson		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386399</link>

		<dc:creator><![CDATA[Tyson]]></dc:creator>
		<pubDate>Sun, 03 Oct 2021 22:55:41 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386399</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-378228&quot;&gt;Mike Curn&lt;/a&gt;.

 What is  wrong about the code.. 

I&#039;m trying to control proxy into the local server chrome via C#

{
    Process proc = new Process();
    proc.StartInfo.FileName = @&quot;C:Program FilesGoogleChromeApplicationchrome.exe&quot;;
    proc.StartInfo.Arguments = @&quot;--remote-debugging-port=9222 --user-data-dir=C:APIlocalhost&quot;;
    proc.Start();


    string url = &quot;https://www.ipleak.net/&quot;;

    IWebDriver driver;
    ChromeOptions options = new ChromeOptions();
    options.DebuggerAddress = &quot;localhost:9222&quot;;
    options.AddArgument(&quot;--proxy-server=8.8.8.8:8080&quot;);
    driver = new ChromeDriver(options);
    driver.Navigate.GoToUrl(url);
}]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-378228">Mike Curn</a>.</p>
<p> What is  wrong about the code.. </p>
<p>I&#8217;m trying to control proxy into the local server chrome via C#</p>
<p>{<br />
    Process proc = new Process();<br />
    proc.StartInfo.FileName = @&#8221;C:Program FilesGoogleChromeApplicationchrome.exe&#8221;;<br />
    proc.StartInfo.Arguments = @&#8221;&#8211;remote-debugging-port=9222 &#8211;user-data-dir=C:APIlocalhost&#8221;;<br />
    proc.Start();</p>
<p>    string url = &#8220;https://www.ipleak.net/&#8221;;</p>
<p>    IWebDriver driver;<br />
    ChromeOptions options = new ChromeOptions();<br />
    options.DebuggerAddress = &#8220;localhost:9222&#8221;;<br />
    options.AddArgument(&#8220;&#8211;proxy-server=8.8.8.8:8080&#8221;);<br />
    driver = new ChromeDriver(options);<br />
    driver.Navigate.GoToUrl(url);<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Uoni		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386412</link>

		<dc:creator><![CDATA[Uoni]]></dc:creator>
		<pubDate>Fri, 01 Oct 2021 02:14:04 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386412</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-378228&quot;&gt;Mike Curn&lt;/a&gt;.

 As you can see here : https://prnt.sc/1uap73n

I don&#039;t know what am doing wrong . 

did i set it up correct ? 

i tested nothing changed..]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-378228">Mike Curn</a>.</p>
<p> As you can see here : <a href="https://prnt.sc/1uap73n" rel="nofollow ugc">https://prnt.sc/1uap73n</a></p>
<p>I don&#8217;t know what am doing wrong . </p>
<p>did i set it up correct ? </p>
<p>i tested nothing changed..</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Uoni		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386398</link>

		<dc:creator><![CDATA[Uoni]]></dc:creator>
		<pubDate>Fri, 01 Oct 2021 02:14:04 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386398</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-378228&quot;&gt;Mike Curn&lt;/a&gt;.

 As you can see here : https://prnt.sc/1uap73n

I don&#039;t know what am doing wrong . 

did i set it up correct ? 

i tested nothing changed..]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-378228">Mike Curn</a>.</p>
<p> As you can see here : <a href="https://prnt.sc/1uap73n" rel="nofollow ugc">https://prnt.sc/1uap73n</a></p>
<p>I don&#8217;t know what am doing wrong . </p>
<p>did i set it up correct ? </p>
<p>i tested nothing changed..</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Curn		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386411</link>

		<dc:creator><![CDATA[Mike Curn]]></dc:creator>
		<pubDate>Thu, 30 Sep 2021 15:47:15 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386411</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-386410&quot;&gt;Uoni&lt;/a&gt;.

 If you&#039;re launching chrome via Selenium normally, it should clear cookies each time (by default, Selenium uses incognito, or at least equivalent settings.)

RE: Proxy, I&#039;m not as familiar with VB.net, so there may be a different syntax to use here, but you should be able to do something like:
options.Proxy = new Proxy()
options.Proxy.HttpProxy = &quot;http://someproxyurlhere/&quot; // if you want a different proxy url than localhost:9222

Does that help?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-386410">Uoni</a>.</p>
<p> If you&#8217;re launching chrome via Selenium normally, it should clear cookies each time (by default, Selenium uses incognito, or at least equivalent settings.)</p>
<p>RE: Proxy, I&#8217;m not as familiar with VB.net, so there may be a different syntax to use here, but you should be able to do something like:<br />
options.Proxy = new Proxy()<br />
options.Proxy.HttpProxy = &#8220;http://someproxyurlhere/&#8221; // if you want a different proxy url than localhost:9222</p>
<p>Does that help?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Curn		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386397</link>

		<dc:creator><![CDATA[Mike Curn]]></dc:creator>
		<pubDate>Thu, 30 Sep 2021 15:47:15 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386397</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-386396&quot;&gt;Uoni&lt;/a&gt;.

 If you&#039;re launching chrome via Selenium normally, it should clear cookies each time (by default, Selenium uses incognito, or at least equivalent settings.)

RE: Proxy, I&#039;m not as familiar with VB.net, so there may be a different syntax to use here, but you should be able to do something like:
options.Proxy = new Proxy()
options.Proxy.HttpProxy = &quot;http://someproxyurlhere/&quot; // if you want a different proxy url than localhost:9222

Does that help?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-386396">Uoni</a>.</p>
<p> If you&#8217;re launching chrome via Selenium normally, it should clear cookies each time (by default, Selenium uses incognito, or at least equivalent settings.)</p>
<p>RE: Proxy, I&#8217;m not as familiar with VB.net, so there may be a different syntax to use here, but you should be able to do something like:<br />
options.Proxy = new Proxy()<br />
options.Proxy.HttpProxy = &#8220;http://someproxyurlhere/&#8221; // if you want a different proxy url than localhost:9222</p>
<p>Does that help?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Uoni		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386410</link>

		<dc:creator><![CDATA[Uoni]]></dc:creator>
		<pubDate>Wed, 29 Sep 2021 10:32:23 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386410</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-386409&quot;&gt;Mike Curn&lt;/a&gt;.

 Hey mike,

Yes I want to make the browser connect to proxy automatic using this server options.DebuggerAddress = “localhost:9222”

also how it will be to make it remove the cookies eachtime i open the browser]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-386409">Mike Curn</a>.</p>
<p> Hey mike,</p>
<p>Yes I want to make the browser connect to proxy automatic using this server options.DebuggerAddress = “localhost:9222”</p>
<p>also how it will be to make it remove the cookies eachtime i open the browser</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Uoni		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386396</link>

		<dc:creator><![CDATA[Uoni]]></dc:creator>
		<pubDate>Wed, 29 Sep 2021 10:32:23 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386396</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-386395&quot;&gt;Mike Curn&lt;/a&gt;.

 Hey mike,

Yes I want to make the browser connect to proxy automatic using this server options.DebuggerAddress = “localhost:9222”

also how it will be to make it remove the cookies eachtime i open the browser]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-386395">Mike Curn</a>.</p>
<p> Hey mike,</p>
<p>Yes I want to make the browser connect to proxy automatic using this server options.DebuggerAddress = “localhost:9222”</p>
<p>also how it will be to make it remove the cookies eachtime i open the browser</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Curn		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386409</link>

		<dc:creator><![CDATA[Mike Curn]]></dc:creator>
		<pubDate>Wed, 29 Sep 2021 06:29:27 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386409</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-386408&quot;&gt;Uoni&lt;/a&gt;.

 Hi Uoni,
Just to make sure I understand: do you mean connect through a proxy server to access the internet with Chrome through that server?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-386408">Uoni</a>.</p>
<p> Hi Uoni,<br />
Just to make sure I understand: do you mean connect through a proxy server to access the internet with Chrome through that server?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Curn		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386395</link>

		<dc:creator><![CDATA[Mike Curn]]></dc:creator>
		<pubDate>Wed, 29 Sep 2021 06:29:27 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386395</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-386394&quot;&gt;Uoni&lt;/a&gt;.

 Hi Uoni,
Just to make sure I understand: do you mean connect through a proxy server to access the internet with Chrome through that server?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-386394">Uoni</a>.</p>
<p> Hi Uoni,<br />
Just to make sure I understand: do you mean connect through a proxy server to access the internet with Chrome through that server?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Uoni		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386408</link>

		<dc:creator><![CDATA[Uoni]]></dc:creator>
		<pubDate>Mon, 27 Sep 2021 19:43:15 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386408</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-378228&quot;&gt;Mike Curn&lt;/a&gt;.

 I have switched this to VB.net

What i wanted to know is 

How i can add code to connect to HTTP proxy inside the browser from the C# ?

Dim url As String = &quot;https://www.ipleak.net/&quot;

        Dim driver As IWebDriver
        Dim options As ChromeOptions = New ChromeOptions()
        options.DebuggerAddress = &quot;localhost:9222&quot;
        driver = New ChromeDriver(options)
        driver.Navigate().GoToUrl(url)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-378228">Mike Curn</a>.</p>
<p> I have switched this to VB.net</p>
<p>What i wanted to know is </p>
<p>How i can add code to connect to HTTP proxy inside the browser from the C# ?</p>
<p>Dim url As String = &#8220;https://www.ipleak.net/&#8221;</p>
<p>        Dim driver As IWebDriver<br />
        Dim options As ChromeOptions = New ChromeOptions()<br />
        options.DebuggerAddress = &#8220;localhost:9222&#8221;<br />
        driver = New ChromeDriver(options)<br />
        driver.Navigate().GoToUrl(url)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Uoni		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-386394</link>

		<dc:creator><![CDATA[Uoni]]></dc:creator>
		<pubDate>Mon, 27 Sep 2021 19:43:15 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-386394</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-378228&quot;&gt;Mike Curn&lt;/a&gt;.

 I have switched this to VB.net

What i wanted to know is 

How i can add code to connect to HTTP proxy inside the browser from the C# ?

Dim url As String = &quot;https://www.ipleak.net/&quot;

        Dim driver As IWebDriver
        Dim options As ChromeOptions = New ChromeOptions()
        options.DebuggerAddress = &quot;localhost:9222&quot;
        driver = New ChromeDriver(options)
        driver.Navigate().GoToUrl(url)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-378228">Mike Curn</a>.</p>
<p> I have switched this to VB.net</p>
<p>What i wanted to know is </p>
<p>How i can add code to connect to HTTP proxy inside the browser from the C# ?</p>
<p>Dim url As String = &#8220;https://www.ipleak.net/&#8221;</p>
<p>        Dim driver As IWebDriver<br />
        Dim options As ChromeOptions = New ChromeOptions()<br />
        options.DebuggerAddress = &#8220;localhost:9222&#8221;<br />
        driver = New ChromeDriver(options)<br />
        driver.Navigate().GoToUrl(url)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Curn		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-384958</link>

		<dc:creator><![CDATA[Mike Curn]]></dc:creator>
		<pubDate>Mon, 05 Apr 2021 05:14:29 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-384958</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-384945&quot;&gt;Mins&lt;/a&gt;.

Hi Mins, do you get a particular exception or error with your code? I&#039;m wondering specifically what line it fails on, and what the failure was (if any) to help determine if Selenium is trying act too fast, or if an element is in an unexpected state.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-384945">Mins</a>.</p>
<p>Hi Mins, do you get a particular exception or error with your code? I&#8217;m wondering specifically what line it fails on, and what the failure was (if any) to help determine if Selenium is trying act too fast, or if an element is in an unexpected state.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mins		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-384945</link>

		<dc:creator><![CDATA[Mins]]></dc:creator>
		<pubDate>Sat, 03 Apr 2021 01:32:36 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-384945</guid>

					<description><![CDATA[Hi thanks a lot for your work !!!
I just have a question. 
i can know attach my program to an existing browser instance with your method but when i want to find a element to control it, nothing happened and i don&#039;t know why.
 simple exemple  :  
IWebElement screenButton = Driver.FindElement(By.iD(&quot;Screen&quot;));
          if (screenButton.Displayed)
                    screenButton.Click();
                else
                    Console.Write(&quot;screenButton doesn&#039;t exist&quot;);

Do you have an idea ?
Thanks]]></description>
			<content:encoded><![CDATA[<p>Hi thanks a lot for your work !!!<br />
I just have a question.<br />
i can know attach my program to an existing browser instance with your method but when i want to find a element to control it, nothing happened and i don&#8217;t know why.<br />
 simple exemple  :<br />
IWebElement screenButton = Driver.FindElement(By.iD(&#8220;Screen&#8221;));<br />
          if (screenButton.Displayed)<br />
                    screenButton.Click();<br />
                else<br />
                    Console.Write(&#8220;screenButton doesn&#8217;t exist&#8221;);</p>
<p>Do you have an idea ?<br />
Thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike Curn		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-383562</link>

		<dc:creator><![CDATA[Mike Curn]]></dc:creator>
		<pubDate>Fri, 04 Dec 2020 23:32:08 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-383562</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://intellitect.com/blog/selenium-chrome-csharp/#comment-383553&quot;&gt;Sibtain&lt;/a&gt;.

Thank you, Sibtain, that is also a great way to do it!

Just a quick note, if you can&#039;t find the latest chromedriver version in NuGet, it is usually posted pretty quickly on the official website:
https://chromedriver.chromium.org/downloads

Just be aware, if you go the route of downloading the .exe directly, you&#039;ll need to tell visual studio to copy the .exe to your output directory after adding it to your solution or project.

Thanks again,
Mike Curn]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://intellitect.com/blog/selenium-chrome-csharp/#comment-383553">Sibtain</a>.</p>
<p>Thank you, Sibtain, that is also a great way to do it!</p>
<p>Just a quick note, if you can&#8217;t find the latest chromedriver version in NuGet, it is usually posted pretty quickly on the official website:<br />
<a href="https://chromedriver.chromium.org/downloads" rel="nofollow ugc">https://chromedriver.chromium.org/downloads</a></p>
<p>Just be aware, if you go the route of downloading the .exe directly, you&#8217;ll need to tell visual studio to copy the .exe to your output directory after adding it to your solution or project.</p>
<p>Thanks again,<br />
Mike Curn</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sibtain		</title>
		<link>https://intellitect.com/blog/selenium-chrome-csharp/#comment-383553</link>

		<dc:creator><![CDATA[Sibtain]]></dc:creator>
		<pubDate>Fri, 04 Dec 2020 18:04:39 +0000</pubDate>
		<guid isPermaLink="false">https://intellitect.com/?p=35888#comment-383553</guid>

					<description><![CDATA[Hi,

Maybe this will help someone like me. It took me 3 days to find this blog to sort out this. I did little tweaks because I still don&#039;t know much about C#.

Download latest chromerdriver.exe and place it for example in C:\WebDriver. I couldn&#039;t find the latest chromedriver.exe for chrome 87. The one available at Nuget in VS2019 was not compatible with Chrome 87.

Now run cmd and run:
chrome.exe -remote-debugging-port=9222 --user-data-dir=C:\Selenium_Chrome_debug\Chrome

--user-data-dir was manually created in C:\

Now go to VS2019 in your C# project and place the below in Main:
ChromeOptions options = new ChromeOptions();
 options.DebuggerAddress = &quot;127.0.0.1:9222&quot;;
IWebDriver driver = new ChromeDriver(@&quot;C:\\WebDriver\\&quot;, options);

Now keep the chrome opened (the chrome we started with cmd) and go to the webpage you were trying to attach and run the debugger with F5.

This works for me.

Regards
Sibtain.]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Maybe this will help someone like me. It took me 3 days to find this blog to sort out this. I did little tweaks because I still don&#8217;t know much about C#.</p>
<p>Download latest chromerdriver.exe and place it for example in C:\WebDriver. I couldn&#8217;t find the latest chromedriver.exe for chrome 87. The one available at Nuget in VS2019 was not compatible with Chrome 87.</p>
<p>Now run cmd and run:<br />
chrome.exe -remote-debugging-port=9222 &#8211;user-data-dir=C:\Selenium_Chrome_debug\Chrome</p>
<p>&#8211;user-data-dir was manually created in C:\</p>
<p>Now go to VS2019 in your C# project and place the below in Main:<br />
ChromeOptions options = new ChromeOptions();<br />
 options.DebuggerAddress = &#8220;127.0.0.1:9222&#8243;;<br />
IWebDriver driver = new ChromeDriver(@&#8221;C:\\WebDriver\\&#8221;, options);</p>
<p>Now keep the chrome opened (the chrome we started with cmd) and go to the webpage you were trying to attach and run the debugger with F5.</p>
<p>This works for me.</p>
<p>Regards<br />
Sibtain.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
