File tree Expand file tree Collapse file tree
galen-core/src/main/java/com/galenframework/page/selenium Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ All changes to Galen Framework project will be documented in this file
55### Fixed
66- Blur for edges of page element image
77- Removed default ./ prefix to all spec paths
8+ - Screen identification on some websites
89
910### Changed
1011- Exiting with error code by default in case there were failed tests
Original file line number Diff line number Diff line change @@ -36,9 +36,11 @@ public ScreenElement(WebDriver driver) {
3636 @ Override
3737 public Rect calculateArea () {
3838 List <Long > size = (List <Long >)((JavascriptExecutor )driver ).executeScript ("return [Math.max(" +
39+ "document.documentElement.scrollWidth," +
3940 "document.body.offsetWidth, document.documentElement.offsetWidth," +
4041 "document.body.clientWidth, document.documentElement.clientWidth)," +
4142 "Math.max(" +
43+ "document.documentElement.scrollHeight," +
4244 "document.body.offsetHeight, document.documentElement.offsetHeight," +
4345 "document.body.clientHeight, document.documentElement.clientHeight)];"
4446 );
You can’t perform that action at this time.
0 commit comments