title: Would it be possible to open a website and then run JavaScript in it using Python?
body: <p>I have been trying to open a website (using python), then run a JavaScript script on it.</p>
  <p>I did the open the website part, but I haven't managed to get the JavaScript to run after the page loads.</p>
  <pre><code>import os
  url='example.com'
  jscode='alert(\'success\')'
  os.system('start chrome.exe '+url+' javascript:'+jscode)
  </code></pre>
  <p>The code above is the best I can think of.</p>
  <p>It opens the website but does not run the javascript.</p>
  <p>I used <code>os.system()</code> because other methods have problems with chrome.</p>