我在 Selenium 中点击时遇到问题,它没有点击按钮。这是我的代码:
from selenium import webdriver
import time
import click
from selenium.webdriver.support.select import Select
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome()
driver.get("https://help.instagram.com/contact/723586364339719/")
submit_button = driver.find_element_by_xpath('//*[@id="u_0_8"]')
submit_button.click()
这是 HTML 代码:
<button value="1" class="_42ft _4jy0 _4jy4 _4jy1 selected _51sy" type="submit" id="u_0_8">Enviar</button>
慕神8447489
慕斯709654
哔哔one
相关分类