from selenium import webdriver
import time
import os
from selenium.webdriver.common.action_chains import ActionChains
driver = webdriver.Chrome()
url = "file:///" + os.path.abspath("C:/Users/22987/Desktop/比特/selenium2html/level_locate.html")
driver.get(url)
driver.find_element_by_link_text("Link1").click()
time.sleep(2)
q = driver.find_element_by_link_text("Another action")
ActionChains(driver).move_to_element(q).perform()
time.sleep(2)
driver.quit()

abb77e8be5d09b9d1e4764903e7768d309ba96dd
<mask token>

<mask token>
driver.get(url)
driver.find_element_by_link_text('Link1').click()
time.sleep(2)
<mask token>
ActionChains(driver).move_to_element(q).perform()
time.sleep(2)
driver.quit()

<mask token>
driver = webdriver.Chrome()
url = 'file:///' + os.path.abspath(
    'C:/Users/22987/Desktop/比特/selenium2html/level_locate.html')
driver.get(url)
driver.find_element_by_link_text('Link1').click()
time.sleep(2)
q = driver.find_element_by_link_text('Another action')
ActionChains(driver).move_to_element(q).perform()
time.sleep(2)
driver.quit()

from selenium import webdriver
import time
import os
from selenium.webdriver.common.action_chains import ActionChains
driver = webdriver.Chrome()
url = 'file:///' + os.path.abspath(
    'C:/Users/22987/Desktop/比特/selenium2html/level_locate.html')
driver.get(url)
driver.find_element_by_link_text('Link1').click()
time.sleep(2)
q = driver.find_element_by_link_text('Another action')
ActionChains(driver).move_to_element(q).perform()
time.sleep(2)
driver.quit()

from selenium import webdriver
import time
import os
from selenium.webdriver.common.action_chains import ActionChains
driver = webdriver.Chrome()
url = "file:///" + os.path.abspath("C:/Users/22987/Desktop/比特/selenium2html/level_locate.html")
driver.get(url)
driver.find_element_by_link_text("Link1").click()
time.sleep(2)
q = driver.find_element_by_link_text("Another action")
ActionChains(driver).move_to_element(q).perform()
time.sleep(2)
driver.quit()
