1.莫名其妙抓不到元素,要去看句柄,是不是没有切换 h=driver.current_window_handle nh=driver.window_handles for i in nh: if i!=h: driver.switch_to.window(i) 2.hover后才能看到的元素,要hover或者点击才能继续操作 mine=driver.find_element_by_id("j-username-color") ActionChains(driver).move_to_e
$(".share-weixin").on("click",function(e){ var $wx=$(".weixin-share"),_winW=$(window).width(),_winH=$(window).height(),_winScrollT=$(window).scrollTop(),_winScrollL=$(window).scrollLeft(); $wx.css({"display":"b