I am trying to use selenium in a Python 3.4 console. In your forums you suggest the use of pyvirtualdisplay but when I run the test code you suggested
from pyvirtualdisplay import Display from selenium import webdriver import traceback browser = None try: display = Display().start() browser = webdriver.Firefox() browser.get('http://www.google.com') print browser.title except Exception as e: traceback.print_exc() finally: if browser is not None: browser.quit() display.stop()
I get the following message
Traceback (most recent call last): File "/home/ramius/test.py", line 1, in <module> from pyvirtualdisplay import Display ImportError: No module named 'pyvirtualdisplay'
Any idea why?