Skip to content

Instantly share code, notes, and snippets.

@theshahzaibc
Last active January 5, 2021 19:02
Show Gist options
  • Save theshahzaibc/6d606a609a114a0678fb1b344bdb660b to your computer and use it in GitHub Desktop.
Save theshahzaibc/6d606a609a114a0678fb1b344bdb660b to your computer and use it in GitHub Desktop.
from selenium.webdriver.common.action_chains import ActionChains
menu = driver.find_element_by_id("menu")
submenu = driver.find_element_by_id("submenu1")
ActionChains(driver)
.move_to_element(menu)
.click(submenu)
.perform()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment