New to Python Selenium.

I am trying to create an script to login to my home router and press the button restart.

Running to error, when trying to login to the router, can some on guide on my mistake here.

below is the code and also attaching the .[screenshot](https://i.stack.imgur.com/y3KZs.jpg)

```py
from selenium import webdriver
from selenium.webdriver.chrome.service import Service

driver_service = Service(executable_path="C:\Program Files (x86)\chromedriver.exe")
driver = webdriver.Chrome(service=driver_service)

PASSWORD = 'testtes'

login_page = 'http://192.168.2.1/login.html'

driver.get(login_page)
driver.find_element_by_xpath("//input[@placeholder='Password']").send_keys(PASSWORD)

```

Below is the error I am getting.

> 
> Traceback (most recent call last):
> File "C:\Users\admin\Desktop\pyhton\index.py", line 14, in 
> driver.find\_element\_by\_xpath("//input[@placeholder='Password']").send\_keys(PASSWORD)
> AttributeError: 'WebDriver' object has no attribute 'find\_element\_by\_xpath'
> 
> 
> 

getting this error now.

Traceback (most recent call last):
File "C:\Users\admin\Desktop\pyhton\index.py", line 13, in 
driver.find\_element(By.XPATH, "//input[@placeholder='Password']").send\_keys(PASSWORD)
File "C:\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 856, in find\_element
return self.execute(Command.FIND\_ELEMENT, {
File "C:\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 429, in execute
self.error\_handler.check\_response(response)
File "C:\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 243, in check\_response
raise exception\_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//input[@placeholder='Password']"}