方法1:直接調用click()
ele.click
方法2:調用execute_script(),通過js實現
driver.execute_script("arguments[0].click();", ele)
方法3:調用鼠標操作實現
ActionChains(driver).move_to_element(ele).click(ele).perform()
方法1:直接調用click()
ele.click
方法2:調用execute_script(),通過js實現
driver.execute_script("arguments[0].click();", ele)
方法3:調用鼠標操作實現
ActionChains(driver).move_to_element(ele).click(ele).perform()
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。