title: my code doesn't read Value from app.config
body: <p>I am an absolute beginner to C-sharp.
  my code doesn't read the value from <code>app.config.</code> I couldn't figure out what is missing.
  The code opens Chrome but doesn't go to the Google website.
  very much appreciated it if anyone can help with it.</p>
  <pre><code>using Microsoft.VisualStudio.TestTools.UnitTesting;
  using OpenQA.Selenium;
  using OpenQA.Selenium.Chrome;
  using System.Configuration;
  using System.IO;
  using System.Reflection;
  
  namespace TestProject1
  {
      [TestClass]
      public class UnitTest1
      {
          public static IWebDriver driver { get; set; }
          [TestMethod]
          public void TestMethod1()
          {
              var chromeOptions = new ChromeOptions();
              chromeOptions.AddArgument(&quot;-no-sandbox&quot;);
              driver = new ChromeDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), chromeOptions);
              driver.Navigate().GoToUrl(ConfigurationManager.AppSettings[&quot;URL&quot;]);
          }
      }
  }
  
  
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
  &lt;configuration&gt;
      &lt;appSettings&gt;
          &lt;add key=&quot;URL&quot; value=&quot;https://www.google.com/&quot; /&gt;
      &lt;/appSettings&gt;
  &lt;/configuration&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/4xfZN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4xfZN.png" alt="main code" /></a>
  <a href="https://i.stack.imgur.com/bnmY1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bnmY1.png" alt="app.coonfig" /></a></p>