📜  python selenium 将光标移动到元素 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:25.635000             🧑  作者: Mango

代码示例1
from selenium import webdriver
from selenium_move_cursor.MouseActions import move_to_element_chrome

driver = webdriver.Chrome(chrome_options=chrome_options)

driver.maximize_window()

driver.get("https://www.google.com/")
element = driver.find_elements_by_css_selector("input[class='gNO89b']")[1]

move_to_element_chrome(driver, element, display_scaling=100, chrome_info_bar_shown=True)