如何使用纯JavaScript截屏元素?

时间:2019-06-30 00:47:30

标签: javascript

我想在网站上保存一个验证码图片,

我无法直接使用验证码的链接,因为它将重新生成图像

所以,我正在考虑仅使用纯JavaScript截屏,

为什么纯JavaScript?因为我在android应用中使用代码,所以在Java代码中

我尝试使用此代码选择验证码

document.querySelectorAll("table.troisbords:nth-child(6) table.troisbords div.box_login:nth-child(1) table:nth-child(1) tbody:nth-child(1) tr:nth-child(4) td:nth-child(2) > img:nth-child(1)");

https://i.stack.imgur.com/0sf4y.png

什么是节点列表?我可以用它来保存屏幕截图吗?

这是网站的链接

https://www.inscription.tn/ORegMx/servlet/AuthentificationEtud?ident=cin

任何帮助将不胜感激

0 个答案:

没有答案