1 get validation message

'''

title :get title of current page

current_url: get url of current page

'''

from selenium import webdriver

browser=webdriver.Chrome()

browser.get('http://www.126.com')

# print title of current page

title=browser.title

print(title)

#print url of current page

now_url=browser.current_url

print(now_url)

browser.quit()

你可能感兴趣的:(1 get validation message)