title: .NET Core - Selenium RemoteWebDriver - PlatformNotSupportedException
body: <p>I am trying to run Selenium test using <code>.net core 2</code> and <code>xunit</code>  </p>
  
  <p>As Selenium server I am using docker container as documented here:
  <a href="https://github.com/SeleniumHQ/docker-selenium" rel="nofollow noreferrer">https://github.com/SeleniumHQ/docker-selenium</a></p>
  
  <p>Running container with command:<br>
  <code>docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome</code></p>
  
  <p>Test code</p>
  
  <pre><code>public void Test()
  {
      IWebDriver driver = new RemoteWebDriver(new Uri("http://127.0.0.1:4444"), new ChromeOptions());
      driver.Navigate().GoToUrl("https://www.google.com");
      var s = ((ITakesScreenshot)driver).GetScreenshot();
      s.SaveAsFile("screen.jpg");
  }
  </code></pre>
  
  <p>When I try to run the test I get exception:</p>
  
  <pre><code>System.PlatformNotSupportedException : Operation is not supported on this platform.
     at System.Net.SystemWebProxy.GetProxy(Uri destination)
     at System.Net.ServicePointManager.ProxyAddressIfNecessary(Uri&amp; address, IWebProxy proxy)
     at System.Net.ServicePointManager.FindServicePoint(Uri address, IWebProxy proxy)
     at System.Net.HttpWebRequest.get_ServicePoint()
     at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
     at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
     at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
     at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
     at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
     at Automation.LoginTests.Test() in C:\Git\Automation\test\Tests\LoginTests.cs:line 29
  </code></pre>
  
  <p>Same result when I am running on linux (Debian 9) or Windows 10.
  Am I doing something wrong? Selenium seems to be able to support .NET Core 2</p>