Skip to content

Commit

Permalink
SBVT-1300: Changed how the webpage height is found (#72)
Browse files Browse the repository at this point in the history
Co-authored-by: trevor.nelms <trevor.nelms@smartbear.com>
  • Loading branch information
tnelms1 and trevor.nelms authored Apr 12, 2023
1 parent e0e5f15 commit b5364ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ let takeScreenshot = (element, name, modifiedOptions, win) => {

// Run some JS commands on the user's browser
let numScrolls = win.eval("Math.ceil(Math.max(window.document.body.offsetHeight, window.document.body.scrollHeight, window.document.documentElement.offsetHeight, window.document.documentElement.scrollHeight) / window.innerHeight)");
let offsetHeight = win.eval("window.document.body.offsetHeight");
let offsetHeight = win.eval("Math.max(window.document.body.offsetHeight,window.document.body.scrollHeight, window.document.documentElement.offsetHeight, window.document.documentElement.scrollHeight)");
let viewportHeight = win.eval("window.innerHeight");
let viewportWidth = win.eval("window.innerWidth");

Expand Down
2 changes: 1 addition & 1 deletion qa/exampleFreezeCarousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (typeof jQuery == 'function'){
jQuery('.carousel').carousel(0);
jQuery('.carousel').carousel('pause');
}
if (typeof jQuery('.owl-carousel').carousel == 'function'){
if (typeof jQuery('.owl-carousel').owlCarousel == 'function'){
jQuery('.owl-carousel').trigger('stop.owl.autoplay');
jQuery('.owl-carousel').trigger('to.owl.carousel',[0]);
}
Expand Down

0 comments on commit b5364ce

Please sign in to comment.