RIDE: Screenshot-Library and Firefox, but i just get black screenshots

175 views
Skip to first unread message

alex....@w-friends.de

unread,
Nov 1, 2013, 10:02:43 AM11/1/13
to robotframe...@googlegroups.com
Hello everyone,


i'm new to Selenium and RIDE and try to write my first test script with the final goal to compare two versions of a homepage and its sub-pages (before and after a CQ-version change). But thats another story and might be worth another question in future..


So far i get along with the setup of the several needed applications and languages (Python, wxPython, Selenium, Robotframework, Ride, …) to run RIDE based on Python and Webdriver in a MacOSX environment (atm local, later with XServer-VMs).


Nevertheless i got my first test running and by using Selenium2Library and Screenshot-Library in RIDE, i managed to write a test which does successful get screenshots with a local Webdriver driven Firefox-browser. BUT unfortunately those are always black, even with Firefox. :(


At the moment I'm running out of ideas what to try&error to achieve a stable process of those very basic function of Webdriver/Selenium (aka get proper Screenshots). 


Any hint or advice is welcome.


Best Regards,
Alex.



alex....@w-friends.de

unread,
Nov 1, 2013, 11:01:23 AM11/1/13
to robotframe...@googlegroups.com
Great!

Managed to gain success by myself.

I used the "Take Screenshot Without Embedding"-Screenshot-Library-Command. But that command did not work, it was "Capture Page Screenshot" from the Selenium2Library.

Little bit confusing. Why is there a Screenshot-Library, if these commands would not work? 

Am i missing something?


Regards,
Alex.

Ed Manlove

unread,
Nov 1, 2013, 11:27:52 AM11/1/13
to robotframe...@googlegroups.com
Alex,

There is a difference between the two. The RF Screenshot Library [1]
takes screenshots of your full computer screen or desktop while the
"Capture Page Screenshot" keyword from the Selenium2Library takes
screenshots of only the browser page. I am not sure why the "Take
Screenshot Without Embedding" is not working in your particular case.

Ed

[1] http://robotframework.googlecode.com/hg/doc/libraries/Screenshot.html
[2]
http://rtomac.github.io/robotframework-selenium2library/doc/Selenium2Library.html#Capture%20Page%20Screenshot

Tatu Aalto

unread,
Nov 2, 2013, 3:57:40 AM11/2/13
to devP...@verizon.net, robotframework-users

Ugh

Would it possible to demonstrate your problem with a dummy example. Also sending the log.html (if it doesn't contain confidential information) and the test case might share some light on your problem.

-Tatu

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/groups/opt_out.

alex....@w-friends.de

unread,
Nov 4, 2013, 4:37:33 AM11/4/13
to robotframe...@googlegroups.com
Hi Ed,

thanks for your explanation.

I'll keep that in mind ;-)
Reply all
Reply to author
Forward
0 new messages