Taking Remote Screenshots with Robot using Selenium

109 views
Skip to first unread message

AndreasEK

unread,
Feb 10, 2010, 5:44:22 AM2/10/10
to robotframework-users
Hi, I just blogged about this, and thought you're interested:

http://blog.codecentric.de/2010/02/remote-screenshots-mit-selenium-und-dem-robot-framework/

Also, if you know how to get this working for IE without the
singleWindow mode, please let me know :)

Kindest Regards,
Andreas

Radek Wierzbicki

unread,
Feb 10, 2010, 10:58:30 AM2/10/10
to robotframe...@googlegroups.com
Great post! Thanx for explaining all about screen shots with selenium.
I'll play with it.

I was recently looking at "Sauce Labs". They use selenium and let you
execute your test cases on the cloud. One feature they have is that you
can get movies of your test execution and see the failures.

I was thinking that it would be easy to do that in the selenium-plugin.
Create a keyword that will start takig screenshots automatically after
every selenium function is executed. Then at the end, concatenate all
screen shots into a movie file.

--
Radek

Pekka Klärck

unread,
Feb 12, 2010, 9:17:39 AM2/12/10
to Andreas...@gmx.de, robotframework-users
2010/2/10 AndreasEK <Andreas...@gmx.de>:

> Hi, I just blogged about this, and thought you're interested:
>
> http://blog.codecentric.de/2010/02/remote-screenshots-mit-selenium-und-dem-robot-framework/

Thanks for the interesting post. Here's a direct link to the English
version if somebody interested about this missed it:
http://blog.codecentric.de/en/2010/02/remote-screenshots-mit-selenium-und-dem-robot-framework/

> Also, if you know how to get this working for IE without the
> singleWindow mode, please let me know :)

Capture Screenshot keyword has now been enhanced so that it can be
used with all browsers regardless is the Selenium Server running on
the local or remote host [1]. Notice that this keyword takes a
screenshot of the whole desktop. We also decided to implement a
separate Capture Page Screenshot [2] but it only works on Firefox due
to problems in Selenium you already noticed.

Our target was to release SeleniumLibrary 2.3 today but fixing some
problems with IE and other yak shaving took so much time that the
release is postponed to Monday. All the issues targeted for 2.3 [3]
have now been fixed (or descoped) so the current code can be
considered RC quality.

[1] http://code.google.com/p/robotframework-seleniumlibrary/issues/detail?id=89
[2] http://code.google.com/p/robotframework-seleniumlibrary/issues/detail?id=93
[3] http://code.google.com/p/robotframework-seleniumlibrary/issues/list?can=1&q=target%3D2.3

Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org

Reply all
Reply to author
Forward
0 new messages