As the title, the following is not working on the digitalocean ubuntu droplet, but works on my local computer. All the software are the same.
It is just hanging there.
import os
from selenium import webdriver
from pyvirtualdisplay import Display
display = Display(visible=0, size=(800, 600))
display.start()
driver = webdriver.Chrome()
driver.get("http://www.google.com")
print driver.page_source.encode('utf-8')
driver.quit()
display.stop()
Can anybody give me some clue? Thanks a lot.I have searching all around and could not find any helpful information.