Locating Elements

官網:

http://selenium-python.readthedocs.org/locating-elements.html


two private methods: find_element and find_elements.

Example usage:

from selenium.webdriver.common.by import By

driver.find_element(By.XPATH, '//button[text()="Some text"]')
driver.find_elements(By.XPATH, '//button')

(find_element(by=“xxx”,value=“xxx”))


Selenium自動登錄163郵箱和locating elements

http://www.360doc.com/content/15/0918/12/21412_499892520.shtml

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章