I have been trying for a long time to get Selenium to select an option from a drop down select field. It appears not to be selecting the element whatsoever. Could the fact that it requires a reload link be causing issues?
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from bs4 import BeautifulSoup
import csv
import requests
import re
driver2 = webdriver.Chrome()
driver2.get("http://www.squawka.com/match-results")
el = driver2.find_element_by_id('league-filter-list')
for option in el.find_elements_by_tag_name('option'):
if option.text == 'Football League Championship':
option.click()
break
driver2.quit()