selenium+python:点击元素、alert弹框、鼠标操作(左键点击、右键点击、双击、鼠标悬浮)、下拉选项框、窗口切换等操作的处...
一、鼠标点击元素操作driver=webdriver.Chrome()driver.maximize_window()driver.get("https://www.baidu.com/")#找到“登录”这个按钮,并且点击(click())WebDriverWait(driver,15).until(EC.visibility_of_element_located((By.XPATH,'//div