打开visible显隐的DIV层,如何操作上面的元素
#!/usr/bin/env python
#coding:utf-8
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.action_chains import ActionChains
from time import sleep
import urllib
import urllib2
import re
driver = webdriver.Chrome()
driver.set_window_size(1400, 1000)
driver.get("http://www.stmbuy.com/pubg/item-2676236109")
sleep(2)
print "打开我要求购"
above = driver.find_element_by_link_text("我要求购")
ActionChains(driver).double_click(above).perform()
sleep(5)
print "点击关闭"
#二次点位失败
div=driver.find_element_by_class_name("pop login-pop visible").find_element_by_class_name("icon pop-close")
div.click()
xpath写错了,基本功没到位