http://www.nike.com/us/en_us/c/nikeid
I want to click on the 'Customize' nav link up in the top nav bar (so the one on the top, not the left) and then select Men's in the hover menu.
I can click on 'Customize', the hover menu than opens, but I am having trouble selecting Men's in that menu. I have posted my code below.
driver.get('http://www.nike.com/us/en_us/c/nikeid')
# open Customize hover menu in top nav bar
men_menu = driver.find_element_by_css_selector("li[data-nav-tracking=customize]")
actions.move_to_element(men_menu).perform()
# click Men's
wait.until(EC.visibility_of_element_located((By.CSS_SELECTOR, "li[data-nav-tracking=men] a[data-subnav-label$=Men's]"))).click()
How do I click on the Men's link with Selenium Webdriver?
Men'smenu item inside theCustomizemenu. May be you meant "Men" link?..