인프런 - 강의/웹 자동화 프로그램 만들기(Selenium)

9 - 마우스 올리기

----___<<<<< 2020. 2. 13. 15:44

from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains

import time

driver = webdriver.Chrome("./chromedriver")

driver.get('https://gallery.v.daum.net/p/viewer/5015999')

time.sleep(3)

action = ActionChains(driver)

action.move_to_element(driver.find_element_by_xpath('//*[@id="mArticle"]/div[4]/div/div[1]/a[1]/div/img')).perform()