title: c# How to click button using selenium webdriver?
body: <p>I tried to click 'Sign In' button.
  but It doesn't click at all.
  my code is below.
  Can anybody help me?</p>
  
  <pre><code>[FindsBy(How = How.XPath, Using = "//input[@name='ctl00$MainContent$LoginForm$LoginButton' and @value='sign in']")]
      [CacheLookup]
      private IWebElement Submit { get; set; }
  
      public LoginPage(IWebDriver driver)
      {
          this.driver = driver;
          PageFactory.InitElements(driver, this);
      }
  
      public void LoginToApplication()
      {
          System.Threading.Thread.Sleep(5000);
          Submit.Click();
       }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ZBW08.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZBW08.png" alt="enter image description here"></a></p>