from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
url = 'https://www.msha.gov/mine-data-retrieval-system'
driver = webdriver.Chrome(executable_path='chromedriver')
driver.get(url)
#driver.find_element_by_xpath('//*[@id="mstr90"]/div[1]/div/div') error
#driver.find_elements_by_xpath('//input') gives 3 while in driver gives 10
我无法找到输入“通过在此处键入按我的ID搜索..”的元素,文档已完全加载,但找不到它。我想做的是简单地传入输入“0100003”,然后提交
慕哥9229398
慕盖茨4494581
相关分类