running this code give this errror geckodriver' executable needs to be in PATH.
from pyvirtualdisplay import Display
from selenium import webdriver
with Display():
# we can now start Firefox and it will run inside the virtual display
display = Display(visible=0, size=(800, 600))
display.start()
browser = webdriver.Firefox()
# put the rest of our selenium code in a try/finally
# to make sure we always clean up at the end
try:
browser.get('http://www.google.com')
#print browser.title #this should print "Google"
finally:
browser.quit()