title: How to find the button element through Selenium webdriver and xpath
body: <p><a href="https://i.stack.imgur.com/0JunD.jpg" rel="nofollow noreferrer">snapshot</a>   </p>
  
  <pre><code> &lt;button class="add-school btnEditDashboard btn btn-primary pull-right" ng-click="CreateNewSchool()" name="AddSchool" type="submit"&gt;Add School&lt;/button&gt;
  </code></pre>
  
  <p>Tried xpath also. (<code>\\html/body/div[2]/div/div[2]/div/div/div[1]/div/div[2]/button</code>)</p>
  
  <pre><code>Exception in thread "main" org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"tag name","selector":"AddSchool"}
  </code></pre>