I'm using selenium in python and trying to click an element that is not a button class. I'm using Google Chrome as my browser/web driver
Here is my code:
from selenium import webdriver
from bs4 import BeautifulSoup
driver = webdriver.Chrome(executable_path="/Users/ep9k/Desktop/SeleniumTest/drivers/chromedriver")
driver.get('http://tax.watgov.org/WataugaNC/search/commonsearch.aspx?mode=address')
driver.find_element_by_name('btAgree').click() #clicks 'Agree' button to agree to site's terms
driver.find_element_by_name('inpNumber').send_keys('190')
driver.find_element_by_name('inpStreet').send_keys('ELI HARTLEY')
driver.find_element_by_name('btSearch').click()
I can parse the results HTML (with Beautiful Soup for example), but I want to Click on them. If I inspect the first row of elements, I see this is kept in a div element, with a style of "margin-left:3px;".
But this is not a button element, so the normal click() function does not work. Is there a way to click on this? For example, If I click on the first row of results, I am taken to this page with more information (which is what I really want):


