I'm new to creating extensions, and I'm trying to become more comfortable with them. Basically, I'm trying to create a simple extension that does the following:
- Open a new window (achieved).
 - Have the ability to 'click' a button from the extension (not achieved).
 
I'm not sure how to approach having the extension click the button in a new window. How can I approach this? This is what I have right now:
popup.html
<html>
        <body>
                <input type="button" id="the_button" value="My button"></input>
        </body>
        <script src="popup.js"></script>
</html>
popup.js
document.getElementById("the_button").addEventListener("click", function() {
    var win = window.open("http://www.roblox.com", "roblox", 400, 400)
    //Now what can I do to externally click buttons?
})
manifest.json
{
  "manifest_version": 2,
  "name": "Test",
  "description": "Test Extension",
  "version": "1.0",
  "icons": { 
    "48": "icon.png"
   },
  "permissions": [
    "http://*/*", 
    "https://*/*"
  ],
  "content_scripts": [{
    "matches": ["http://*/*", "http://*/*"],
    "js": ["jquery.js", "popup.js"]
  }],
  "browser_action": {
    "default_title": "This is a test",
    "default_icon": "icon.png",
    "default_popup": "popup.html"
  }
}