title: How to get elements from element in Selenium using C#
body: <p>How to select elementS from element. For example I have next element div block and want to select from this div block all elements which have type equals to radio:</p>
  
  <pre><code> private static readonly By divBlock =By.XPath("//*[@contains(@id, 'qst_8220_qst_8235')]");
  
   private static readonly By elementType = By.XPath(".//*[@type='radio']");
  </code></pre>
  
  <p>This code not working for me:</p>
  
  <pre><code>foreach (var elem in WebDriver.FindElement(divBlock).FindElements(elementType))
          {
              elem.Click();
          }
  </code></pre>
  
  <blockquote>
    <p>Error: Object reference not set to an instance of an object.</p>
  </blockquote>