python selenium (五) 点击和输入

driver.find_element(By.ID, 'login').click()  # 点击
driver.find_element(By.ID, 'fromtable').submit()  # 提交表单用submit
driver.find_element(By.ID, 'input').send_keys('user')  # 输入
driver.find_element(By.ID, 'input').clear()  # 清除内容
posted @ 2025-02-24 22:37  アーニャ  阅读(17)  评论(0)    收藏  举报