I'm just trying to scrape a website, but i got stuck. Here is my code:
from selenium import webdriver
driver = webdriver.Firefox(executable_path='location of the geckodriver')
driver.get('http://kernyilvantartas.zalajaras.hu/public/')
driver.find_element_by_xpath("""//*[@id="btn"]""").click()
# the dropdown menu
driver.find_element_by_xpath("""//*[@id="lap"]""").click()
# click on page 2
driver.find_element_by_xpath("""//*[@id="lap"]/option[2]""").click()
After the click() it only highlights the 2nd option on the dropdown menu but doesnt jump to the next page. Any idea?