Revision: 4440
Author: pekka.klarck
Date: Tue Dec 7 07:17:50 2010
Log: fix saving with gtk. now tested on ubuntu.
http://code.google.com/p/robotframework/source/detail?r=4440
Modified:
/trunk/src/robot/libraries/Screenshot.py
=======================================
--- /trunk/src/robot/libraries/Screenshot.py Tue Dec 7 07:15:20 2010
+++ /trunk/src/robot/libraries/Screenshot.py Tue Dec 7 07:17:50 2010
@@ -60,7 +60,7 @@
0, 0, 0, 0, size[0], size[1])
if not pb:
raise RuntimeError('Taking screenshot failed')
- pb.save()
+ pb.save(path, 'jpeg')
if not take_screenshot: