element = driver.find_element_by_xpath("(//a[contains(@href, '')])[20]") driver.execute_script("arguments[0].click();", element)