Skip to content

Instantly share code, notes, and snippets.

Created February 25, 2015 12:14
Show Gist options
  • Save anonymous/01597554eb515f1f0d39 to your computer and use it in GitHub Desktop.
Save anonymous/01597554eb515f1f0d39 to your computer and use it in GitHub Desktop.
import sys
from time import sleep
from threading import Thread
def communicator():
print('This does not print')
sys.stdout.flush()
while(True):
#frame.evaluateJavaScript('document.getElementById("footer").appendChild(document.createTextNode("Hejjibejj"));')
#fr.evaluateJavaScript('alert("Yo");')
sleep(1)
print('Evaluated')
print('This prints 1')
Thread(target=communicator, args=[])
print('This prints 2');
sleep(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment