from selenium import webdriver

b = webdriver.Firefox()
b.get("http://www.baidu.com")
b.title------------------'百度一下,你就知道'
print("百度" in b.title)---True(判断是否正确)

元素定位

元素操作

xpath定位:

 

posted on 2019-08-01 09:18  wzc27229  阅读(112)  评论(0编辑  收藏  举报