【发布时间】:2020-04-03 22:57:02
【问题描述】:
import time
from selenium import webdriver
driver = webdriver.Chrome(executable_path=r'C:\WebDrivers\chromedriver_win32
(1)\chromedriver.exe') # Optional argument, if not specified will search path.
driver.get('https://survey.zohopublic.com/zs/K8CNBt');
firstName = driver.find_element_by_class_name('inTextBox')
firstName.send_keys('This is my name')
# firstName.submit()
time.sleep(5) # pause for a bit
driver.quit()
所以我制作了一个机器人来自动填写此表单以获取更多条目。我只是不知道用什么来引用文本框。我没有可以引用它的集合名称或 ID。我在 selenium 上找不到需要这个文本框的东西。求助?
可以看到代码的网站链接是:https://survey.zohopublic.com/zs/K8CNBt
【问题讨论】:
标签: python selenium-webdriver bots