title: How to generate key strokes from a batch file?
body: <p>I want to create a batch file to do the following:</p>
  
  <ul>
  <li>Start selenium server(webdriver-manager start)</li>
  <li>Run Protractor tests(protractor conf.js)</li>
  <li>Stop Selenium server()</li>
  </ul>
  
  <p>This needs 2 different command prompts since webdriver-manager start will keep running and simultaneously the tests need to be executed</p>
  
  <p>I have achieved the following so far. I have created a .bat file with the following contents:</p>
  
  <pre><code>start runTests.cmd
  webdriver-manager start
  Ctrl-C(**DOES NOT WORK**)
  </code></pre>
  
  <p>However, I am not able to figure out a way to shutdown the Selenium server(which is achieved by pressing Ctrl+C on the same window on which the webdriver-manager start command is executed)</p>