title: Select input fields from html form in selenium
body: <p>I want to select input fields from the following form in selenium. I have tried many methods but found no help and my test always fails. 
  Here is the html form:</p>
  
  <pre><code>    `&lt;form class="login" action="/Index/trylogin/?ru=L015RmlueWE=" novalidate&gt;
          &lt;fieldset&gt;
              &lt;label&gt;
                  &lt;input type="text" maxlength="14" tabindex="1" value="" placeholder="Pseudonym"&gt;
              &lt;/label&gt;
  
              &lt;label&gt;
                  &lt;input type="password" maxlength="20" tabindex="2" data-ch="8H7vtP9f9tns3TGMJ6F995kTyLSmwFsdDlIyBLhBBsrrW1ZHIZiec4cPqF7C5sp5" data-ch2="1782447a8c3759d4407ed522b831806e8cfde5dc" placeholder="Kennwort"&gt;
              &lt;/label&gt;
  
              &lt;input type="submit" value="Anmelden" class="button button-style1"&gt; 
  
              &lt;div class="login-options"&gt;
                  &lt;label&gt;
                      &lt;input type="checkbox" value="1" name="stayon"&gt;Automatisch anmelden (auf diesem Gerät)
                  &lt;/label&gt;
              &lt;/div&gt;
          &lt;/fieldset&gt;
      &lt;/form&gt;`
  </code></pre>
  
  <p>Her is my test method</p>
  
  <pre><code>[TestMethod]
  public void Login_FinYa_System()
  {
      IWebElement login = _driver.FindElement(By.XPath("//form[1]"));
      IWebElement pass = _driver.FindElement(By.XPath("//form[2]"));
      login.Click();
      login.SendKeys("helo");
      pass.Click();
      pass.SendKeys("123");
      pass.SendKeys(Keys.Enter);
      Assert.AreEqual("hello", "hello");
  }
  </code></pre>