selenium-shutterbug icon indicating copy to clipboard operation
selenium-shutterbug copied to clipboard

Shutterbug.wait() NoSuchMethodError

Open MysticEvan opened this issue 3 years ago • 2 comments

1、 first invoke was successful Shutterbug.wait(getExpectedCondition(screenshotElement),60) .shootElement(webDriver, getWebElement(webDriver, screenshotElement), CaptureElement.FULL_SCROLL) .withName(fileName) .save("/Users/evan/Documents/test");

2、second invoke not with wait() method; NoSuchMethodError PageSnapshot snapshot = Shutterbug.shootPage(webDriver, Capture.FULL_SCROLL) .snapshot.withName(fileName) .save("/Users/evan/Documents/test");

EXCEPTIONG: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.openqa.selenium.support.ui.FluentWait.withTimeout(Ljava/time/Duration;)Lorg/openqa/selenium/support/ui/FluentWait;

whether Shutterbug.beforeShootCondition variable is static ?

MysticEvan avatar Apr 18 '22 12:04 MysticEvan

Hi @MysticEvan could you please share shutterbug version, selenium version and java version you are using?

glibas avatar Apr 21 '22 20:04 glibas

selenium-shutterbug : 1.6 selenium-java: 3.141.59 java: 1.8

MysticEvan avatar Jun 16 '22 03:06 MysticEvan