title: Using appsettings.json in C# selenium automation project
body: <p>I'm working on automation tests which I'm still new to writing the scripts.
  I'll try to be as short as possible. <strong>I'm building everything in .NET CORE. Selenium C# in Visual Studio</strong></p>
  <p>Basically what I would like to know is how to pull string from appsettings.json file to my test class file?</p>
  <p>Basically what I have inside my <strong>appsettings.json file</strong> -&gt;</p>
  <pre><code>  &quot;BaseURL&quot;: &quot;https://google.com/&quot;,
  </code></pre>
  <p>What I have in my test clase is:</p>
  <pre><code>    
         [TestCase]
          public void LoginToGmail()
          
              *currently Im using hardcoded version of*
              driver.url = &quot;https://google.com/&quot;*
              IWebElement GmailLogo = driver.FindElement(By.Xpath.......);
              Assert.IsTrue(GmailLogo.Displayed);
          
  </code></pre>
  <pre><code>But I would like to use something like driver.url = &quot;BaseURL&quot; &lt;- (string from the .json file)
  </code></pre>
  <p>How do you pull it from the .json file?</p>
  <p>Any kind of help would be appreciated!</p>