Locating Elements

来源:互联网 发布:剑三喵太捏脸数据 编辑:程序博客网 时间:2024/04/30 20:09

官网:

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


two private methods: find_element and find_elements.

Example usage:

from selenium.webdriver.common.by import Bydriver.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

0 0