python – Cannot find the element on the web using selenium

I need your help, please. I am using selenium to click a button on a web page, which then opens other options. Unfortunately it does not recognize the Path element. The web simulator is in mobile version as it is easier to access the buttons (the problem is the same for desktop version). I tried to click on other buttons on the web page and it worked correctly.

mobile_emulation = { "deviceName": "Galaxy S5" }
chrome_options = webdriver.ChromeOptions()
chrome_options.add_experimental_option("mobileEmulation", mobile_emulation)
driver = webdriver.Chrome(chromedriver_path, options=chrome_options) 
driver.get('https://www...')

time.sleep(20)

Click1 = driver.find_element_by_xpath('//*[@id="header_3"]/div')
Click1.click()

The error is:

NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="header_3"]/div"}
  (Session info: chrome=93.0.4577.82)

The image of the web code is as follows:

enter image description here

Thanks for your help!

Source link