from selenium.webdrive import Chrome
browser = Chrome()
browser.get('http://ya.ru')
import os
print(os.getpid())
import os
def check_pid(pid):
""" Check For the existence of a unix pid. """
try:
os.kill(pid, 0)
except OSError:
return False
else:
return True