evgenyneu / js-evaluator-for-android

A library for running JavaScript in Android apps.
MIT License
485 stars 84 forks source link

Get a screenshot fo an element in webview #51

Open 0xCTF opened 5 years ago

0xCTF commented 5 years ago

Hi, Is it possible to get a screenshot of an element which is a captcha from a webview in android ?

if yes, how can i do that please

Thanks

0xCTF commented 5 years ago

there html2canvas js library, but i don't know how to use it, i spend many days looking for that without success The captcha outerhtml from the website is

<img src="/ORegMx/capito.png" alt="capito"> Hope someone can help !

evgenyneu commented 5 years ago

@0xCTF, I think you might get help if you ask this question on stackoverflow.com. :)

0xCTF commented 5 years ago

@evgenyneu thank you for your reply,

i asked this question in many ways more than 10 times without answer, https://stackoverflow.com/questions/57032155/is-theres-a-way-to-get-a-screenshot-of-a-captcha-in-webview https://stackoverflow.com/questions/57029398/how-to-use-html2canvas-in-android-in-order-to-take-a-screenshot-of-an-element-in https://stackoverflow.com/questions/56820583/how-i-can-get-an-element-image-from-a-webview https://stackoverflow.com/questions/56814159/take-a-screenshot-of-an-element-in-a-loaded-webview-android and more in a deleted account

i think the js-evaluator-for-android can use javascript lib in android studio in order to to take a screenshot from a webview but i don't know how to do it

evgenyneu commented 5 years ago

Oh sorry, you have already asked on SO. Yeah, it's a very interesting question, but I have no idea. :)

0xCTF commented 5 years ago

no problem, thank you