Skip to content

Commit

Permalink
SHIBUI-2393
Browse files Browse the repository at this point in the history
Changes to support the selenium version bumps
  • Loading branch information
Bill Smith committed Dec 9, 2022
1 parent 054bc37 commit c79d6c7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package jp.vmi.selenium.selenese;

import com.assertthat.selenium_shutterbug.core.Capture;
import com.assertthat.selenium_shutterbug.core.Shutterbug;
import com.assertthat.selenium_shutterbug.utils.web.ScrollStrategy;
import jp.vmi.html.result.HtmlResult;
import jp.vmi.html.result.HtmlResultHolder;
import jp.vmi.junit.result.JUnitResult;
Expand Down Expand Up @@ -223,7 +223,7 @@ private String takeScreenshot(TakesScreenshot tss, File file, boolean entirePage

Map<?, ?> initialCoord = (Map<?, ?>) je.executeScript(getScrollCoord);

Shutterbug.shootPage((WebDriver) tss, ScrollStrategy.BOTH_DIRECTIONS, screenshotScrollTimeout)
Shutterbug.shootPage((WebDriver) tss, Capture.FULL_SCROLL, screenshotScrollTimeout)
.withName(FilenameUtils.removeExtension(tmp.getName()))
.save(dir.getPath());

Expand Down Expand Up @@ -455,7 +455,7 @@ public boolean isInteractive() {

@Override
public boolean isW3cAction() {
return isW3cAction != null ? isW3cAction : MouseUtils.isW3cAction(getBrowserName());
return isW3cAction != null ? isW3cAction : MouseUtils.isW3cAction(driver);
}

/**
Expand Down Expand Up @@ -846,7 +846,7 @@ public void unhighlight() {
* Setup MaxTimeActiveTimer.
* @param maxTime the maxTime in milliseconds.
*/
void setupMaxTimeTimer(long maxTime) {
public void setupMaxTimeTimer(long maxTime) {
this.maxTimeTimer = new MaxTimeActiveTimer(maxTime);
}
}

0 comments on commit c79d6c7

Please sign in to comment.