# -*- coding:utf-8 -*-
# 2020/5/21
# Administrator
from seleniumimport webdriver
driver = webdriver.Chrome()
driver.get('http://www.baidu.com')
#獲取當(dāng)前標(biāo)簽的標(biāo)題
title = driver.title
print(title)
#獲取當(dāng)前URL
print(driver.current_url)
#獲取文本值
hotsearch=driver.find_element_by_class_name('s-hotsearch-content').text
print(hotsearch)
driver.quit()