Forums

How to capture image from Display

I'm using Display with selenium / firefox. Python 2.7 I've tried some example code from forum posts.) Please help me address problems: (or show me how to do it}

display = Display(); i = display.waitgrab() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: Display instance has no attribute 'waitgrab'

from pyvirtualdisplay.smartdisplay import smartdisplay Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/pyvirtualdisplay/smartdisplay.py", line 5, in <module> import pyscreenshot ImportError: No module named pyscreenshot

Looks like you need to install pyscreenshot for it to work.