from selenium import webdriver
driver=webdriver.Firefox()
driver.maximize_window()
driver.get('http://www.baidu.com')
driver.get('http://www.bing.com')
print(u'当前URL为:', driver.current_url)
driver.back()
print(u'当前URL为:', driver.current_url)
from selenium import webdriver
driver=webdriver.Firefox()
driver.maximize_window()
driver.get('http://www.baidu.com')
driver.get('http://www.bing.com')
print(u'当前URL为:', driver.current_url)
driver.back()
print(u'当前URL为:', driver.current_url)