I am trying to click an element in Selenium.
url = "http://www.google.com"
The xpath for the element is: url = //div[@class='filter offices']
Here is my code:
from selenium import webdriver
driver = webdriver.Firefox()
driver.get(url)
element = driver.find_element_by_xpath("//div[@class='filter offices']")
element.click()
When I click the element, the drop-down for offices should appear. Instead, when I click the element, nothing happens. What am I doing wrong?