Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shutterbug.wait() NoSuchMethodError #104

Open
MysticEvan opened this issue Apr 18, 2022 · 2 comments
Open

Shutterbug.wait() NoSuchMethodError #104

MysticEvan opened this issue Apr 18, 2022 · 2 comments

Comments

@MysticEvan
Copy link

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 ?

@glibas
Copy link
Member

glibas commented Apr 21, 2022

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

@MysticEvan
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants