kazurayam / ashotwrapper

A thin wrapper of the AShot library, published at the Maven Central Repository https://mvnrepository.com/artifact/com.kazurayam/ashotwrapper
0 stars 0 forks source link

strange result of censoring in savePageImage #6

Open kazurayam opened 1 year ago

kazurayam commented 1 year ago

Running https://github.com/kazurayam/ashotwrapper/blob/issue6/src/test/java/com/kazurayam/ashotwrapper/demo/AShotWrapperCensorDemo.java resulted this

test_saveEntirePageImageWithCensor

kazurayam commented 1 year ago

I changed the test code as

        //AShotWrapper.savePageImage(driver, options, file);
        AShotWrapper.saveEntirePageImage(driver, options, file);

Then I got the following image

test_saveEntirePageImageWithCensor

This proves that the savePageImage() method has something wrong whereas the saveEntirePageImage() is fine.