简体   繁体   English

自动填写网络表单-chrome扩展程序

[英]filling web form automatically - chrome extension

I need to open some forms which are opened for limited time only. 我需要打开一些仅在有限时间内打开的表格。 Sometimes it will open for 5 minutes a day and form itself will take 10 minutes to fill as it has 50+ fields. 有时它每天会开放5分钟,而表单本身有50多个字段,因此需要10分钟来填写。 I am thinking to make "Google Chrome extension " cloning the original form and have one button "Autofill". 我正在考虑制作“ Google Chrome浏览器扩展程序”,以克隆原始表格并设置一个按钮“自动填充”。 As soon as I click on autofill it will pass data from extension form to website form. 一旦我点击自动填充,它将把数据从扩展表格传递到网站表格。

Any ideas? 有任何想法吗?

you could use script injection, like run some function from console, the function retrieves those forms using js selectors and changes those input values, after that the function causes artificial submit button click. 您可以使用脚本注入,例如从控制台运行某些函数,该函数使用js选择器检索那些表单并更改这些输入值,此后该函数会导致人为地提交按钮单击。

See this article for farther information - Chrome extension execute script 有关更多信息,请参阅本文-Chrome 扩展程序执行脚本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM