js.relative-element-coords.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenium-shutterbug Show documentation
Show all versions of selenium-shutterbug Show documentation
Utility library to create customized screenshots using Selenium WebDriver and Java AWT
var rect = arguments[0].getBoundingClientRect();
return ['' + parseInt(rect.left), '' + parseInt(rect.top), '' + parseInt(rect
.width), '' + parseInt(rect.height), '' + parseInt(arguments[0].scrollWidth),
'' + parseInt(arguments[0].scrollHeight)
];