Handle
#coding:utf-8
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("http://bj.ganji.com/")
h = driver.current_window_handle
print(h)
driver.find_element_by_link_text("招聘求职").click()
all_h = driver.window_handles
print(all_h)
for i in all_h:
if i != h:
driver.switch_to.window(i)
print(driver.title)
driver.close()