I am trying to do WebScraping on the Frankfurter Allgemeine Zeitung Archiv. I need to click on the button 'erweiterte suche' but I keep getting the below error
Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="g_00271e6200ad4985a0a9c8f9b0032c42"]"}.
I have my code here:
import os
import requests
import openpyxl
import smtplib
import time
from selenium import webdriver
driver.get("https://fazarchiv.faz.net")
search_elem = driver.find_element_by_xpath("""//*[@id="searchForm"]/div[1]/input""")
search_elem.click()
search_elem.send_keys('Bürokratie')
erweiterte_suche = driver.find_element_by_xpath("""//*[@id="g_00271e6200ad4985a0a9c8f9b0032c42"]""")
erweiterte_suche.click()
What am I doing wrong?