title: Run automation on headless browser in an ec2 instance with Amazon linux
body: <p>I have an automation framework that uses static html pages within its project directory to perform certain aws operations such as dynamoDB scan and Aws Lambda executions. Due to some performance bottleneck in a dependent api component for the test we are trying to move the framework to an ec2 instance with Amazon linux and run the tests from there. </p>
  
  <p>Since we have methods in the TestNG class that actually uses selenium web driver to spin up a browser and open up the static page in order to perform the required Aws operations I am pretty sure this test is going to run into issues.</p>
  
  <p>There are two potential approach I see for solving this issue:</p>
  
  <ol>
  <li>Implement AWSUtil classes and use necessary aws clients to replace the web dependent logics (Will require some effort and re-engineering)</li>
  <li>Use a headless chrome browser (or any compatible one) in order to run the web dependent steps.</li>
  </ol>
  
  <p>I am pretty sure that number 1 can be easily achieved, just a matter of time and effort. However, would love to know if there is an easy way of accomplishing #2 since this would not require any code rewrite.</p>