My task is to write a parser for clicking a button on a website. There are a lot of buttons, but my problem is only clicking on one of them. The source htmlcan be found here: http://pastebin.com/XhsedGLb
And my python code is:
driver = webdriver.Firefox()
...
el = driver.find_element_by_id("-spel-nba")
actions.move_to_element(el)
actions.sleep(.1)
actions.click()
actions.perform()
The error I get is this:
ElementNotVisibleException: Message: Element is not currently visible and so may not be interacted with
According to Saifur, I just tried waits with the same element not visible exception:
wait = WebDriverWait(driver, 10)
wait.until(EC.presence_of_element_located((By.XPATH, "//input[contains(@id,'spsel')][@value='nba']"))).click()