Python+selenium 元素定位

定位單元素:element By定位須要導入By類:from selenium.webdriver.common.by import Bycss id定位:html driver.find_element_by_id('kw') driver.find_element(By.ID, 'kw') name定位:python driver.find_element_by_name('wd') driv
相關文章
相關標籤/搜索