title: Clicking every button that contains a specific class name with ChromeDriver in C#
body: <p>I am using ChromeDriver and I would like it to click every button on the page that contains a specific class name.</p>
  <pre class="lang-cs prettyprint-override"><code>using OpenQA.Selenium;
  using OpenQA.Selenium.Chrome;
  
  ChromeDriverService chromeDriverService = ChromeDriverService.CreateDefaultService();
  chromeDriverService.HideCommandPromptWindow = true;
  ChromeOptions options = new ChromeOptions();
  options.AddArgument(&quot;ignore-certificate-errors&quot;);
  ChromeDriver driver = new ChromeDriver(chromeDriverService, options);
  
  driver.Url = &quot;https://www.some-url.com&quot;;
  driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromMilliseconds(2);
  </code></pre>
  <p>I was thinking of something along the lines of:</p>
  <pre class="lang-cs prettyprint-override"><code>driver.FindElement(By.ClassName(&quot;some-class-name&quot;)).Click();
  </code></pre>
  <p>However that only clicks on one button. How could I achieve this to click every button found on the web-page?</p>