My goal is to be able to open and navigate a web page based on the inputs I enter in Python.
Currently I am having issues inserting a string input into "Street #" field, and keep getting the below error:
AttributeError: 'list' object has no attribute 'send_key'
Here is my code:
from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary = FirefoxBinary(r"C:...\firefox.exe")
# Open a Web Browser
browser = webdriver.Firefox(firefox_binary = binary)
# Open the 1st Page
browser.get("http://sftreasurer.org/property-tax-payments")
elem_1stClick = browser.find_element_by_css_selector(".ttx_button > div:nth-child(1)")
elem_1stClick.click() # Click on it
# On the 2nd Page
elem_streetNumber = browser.find_elements_by_css_selector("#ContentPlaceHolder1_tbStreetNumber")
elem_streetNumber.send_key("1230")
elem_2ndClick = browser.find_element_by_css_selector("#ContentPlaceHolder1_btnSearch")
elem_2ndClick()
Can anyone help me solve this issue? Your help would be greatly appreciated.
