【发布时间】:2018-03-05 12:46:45
【问题描述】:
我正在使用 selenium 和 python 3.6 编写一个 python 自动填充脚本。我想尽快填写文本输入框。现在我使用:
driver.execute_script("document.getElementById(--the elements ID--
-).value='%s'" % ---what I want script to fill the box with---)
我为正在自动填充的网站的每个输入文本框重复这行代码。这很快,但它一次填充每个文本框。我想一次用类似于 chrome 扩展“自动填充”的不同值填充所有输入框。感谢所有帮助。
【问题讨论】:
标签: python python-3.x selenium bots autofill