title: Selenium C# How to select following text input area:
body: <p>I am unsure how I can select the input area coded below:    </p>
  
  <pre><code>&lt;input _ngcontent-c15="" class="form-control form-control-danger ng-pristine ng-invalid ng-touched" placeholder="Name of the snapshot definition " type="text" ng-reflect-form="[object Object]"&gt;
  </code></pre>
  
  <p>Furthermore, after the text value has been changed the above changes to the below:</p>
  
  <pre><code> &lt;input _ngcontent-c15="" class="form-control form-control-danger ng-touched ng-dirty ng-valid" placeholder="Name of the snapshot definition " type="text" ng-reflect-form="[object Object]"&gt;
  </code></pre>
  
  <p>Same with below:</p>
  
  <pre><code>&lt;input _ngcontent-c15="" class="form-control form-control-danger ng-pristine ng-valid ng-touched" placeholder="Description snapshot definition" type="text" ng-reflect-form="[object Object]"&gt;
  </code></pre>
  
  <p>Changes to:</p>
  
  <pre><code>&lt;input _ngcontent-c15="" class="form-control form-control-danger ng-valid ng-touched ng-dirty" placeholder="Description snapshot definition" type="text" ng-reflect-form="[object Object]"&gt;
  </code></pre>
  
  <p>I have tried numerous combinations of the following:</p>
  
  <pre><code>element = driver.FindElementByXPath("//input[@class='form-control form-control-danger ng-pristine ng-invalid ng-touched']");
  
  element = driver.FindElementByXPath("//input[contains(@class,'form-control form-control-danger ng-pristine ng-invalid ng-touched')]");
  
  element = driver.FindElementByXPath("//*[contains(@class,'form-control form-control-danger ng-pristine ng-invalid ng-touched')]");
  
  element = driver.FindElementByXPath("//a[contains(@class,'form-control form-control-danger ng-pristine ng-invalid ng-touched')]");
  
  element = driver.FindElementByCssSelector("placeholder='Name of the snapshot definition '");
  </code></pre>
  
  <p>The full div for the area in question:</p>
  
  <pre><code>&lt;div _ngcontent-c25="" class="form-group has-danger" ng-reflect-klass="form-group" ng-reflect-ng-class="[object Object]"&gt;
  &lt;label _ngcontent-c25=""&gt;Name&lt;/label&gt;
  &lt;input _ngcontent-c25="" class="form-control form-control-danger ng-pristine ng-invalid ng-touched" placeholder="Name of the snapshot definition " type="text" ng-reflect-form="[object Object]"&gt;
  &lt;!--bindings={"ng-reflect-ng-if": "true"}--&gt;
  &lt;div _ngcontent-c25="" class="alert alert-danger"&gt;Required Field&lt;/div&gt;
  &lt;!--bindings={"ng-reflect-ng-if": "false"}--&gt;
  &lt;!--bindings={"ng-reflect-ng-if": "false"}--&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I do not need to extract any text. I need to enter it into the  area.</p>