# -*- coding:utf-8 -*-
# 2020/5/21
# Administrator
from seleniumimport webdriver
driver = webdriver.Chrome()
driver.get('http://www.baidu.com')
#获取当前标签的标题
title = driver.title
print(title)
#获取当前URL
print(driver.current_url)
#获取文本值
hotsearch=driver.find_element_by_class_name('s-hotsearch-content').text
print(hotsearch)
driver.quit()