Skip to content

Shutterbug.wait() NoSuchMethodError  #104

@MysticEvan

Description

@MysticEvan

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions