I try to find an element on Amazon
def find_amazon_element():
driver = webdriver.Firefox(executable_path=os.path.join('geckodriver'))
driver.maximize_window()
time.sleep(5)
driver.get(url='https://www.amazon.com')
input_field = driver.find_element_by_xpath('//*[@id="twotabsearchtextbox"]')
search_button = driver.find_element_by_xpath('/html/body/div[1]/header/div/div[1]/div[3]/div/form/div[2]/div/input')
input_field.send_keys('vase')
search_button.click()
time.sleep(5)
driver.quit()
if __name__ == "__main__":
find_amazon_element()
but I get this error
httplib_response = conn.getresponse(buffering=True) TypeError: getresponse() got an unexpected keyword argument 'buffering'