Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python selenium hover over element

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

driver = webdriver.Firefox()
driver.get('http://example.com')
element_to_hover_over = firefox.find_element_by_id("foo")

# actual hover
ActionChains(driver).move_to_element(element_to_hover_over).perform()
 
PREVIOUS NEXT
Tagged: #python #selenium #hover #element
ADD COMMENT
Topic
Name
6+9 =