background : Arrears before reissue ,17 It was written locally in , Never uploaded
This is python+selenium Get current url and title
#coding=utf-8
from selenium import webdriver
import time
driver = webdriver.Firefox()
driver.get('http://www.baidu.com')
print('Srate test=================')
title = driver.title
print(title)
# Get current page title
now_url = driver.current_url
print(now_url)
# Get the current page URL
print('End test=================')
time.sleep(2)
# wait 4 second
driver.quit()
# Close the browser