kazurayam / inspectus

The Inspectus library enables automated UI tests in Java/Groovy to perform "Visual Inspection" on top of the "materialstore"
Apache License 2.0
0 stars 0 forks source link

com.kazurayam.inspectus.materialize.selenium.WebPageMaterializingFuctions#takeScreenshot() has fixed value of timeout; want to specify the timeout value #95

Open kazurayam opened 1 year ago

kazurayam commented 1 year ago

https://github.com/kazurayam/inspectus/blob/0.9.5/src/main/java/com/kazurayam/inspectus/materialize/selenium/WebPageMaterializingFunctions.java

    BufferedImage takeScreenshot(WebDriver driver) {
        //-------------------------------------------------------------
        int timeout = 500;  // milli-seconds

I want to be able to specify the timeout value; for example 1000, 2000, 3000

kazurayam commented 1 year ago

at v0.10.0-SNAPSHOT, I added

WebPageMaterializingFucntions#setScrollTimeout(int scrollTimeout)

This method is optional to call. The default value of scrollTimeout is 500 milliseconds.