Full size screenshot of scrolling div

211 views
Skip to first unread message

MJ

unread,
Dec 28, 2013, 10:57:18 AM12/28/13
to seleniu...@googlegroups.com
Hi,

I try to make screenshot of full e-mail from gmail webmail. Becouse the mail is in the scrolling div, I have try to run javascript like this:

var elem = document.getElementById(":4");
var bd = document.getElementsByTagName("body")[0];
elem.setAttribute("style","overflow:visible  !important");
bd.setAttribute("style","overflow:scroll !important");

in "normal" browser this JS set height of div to 100%, and it's scroll with standard browser scrollbar. Unfortunetly it doesnt work with selenium
remote driver (when I try to make screenshot I still see cutted view with div scrollbar). Is there any way to make full screenshot?

Regards,
Michal Jakubowski
Reply all
Reply to author
Forward
0 new messages