I am trying to automate a login on my website using selenium.
I am accessing this website : http://front-desk.fr/users/accounts/login/?next=/
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
chrome_path = r"C:\Users\gaeta\OneDrive\Bureau\chromedriver.exe"
class FrontDesk:
def __init__(self,username,password):
self.username = username
self.password = password
self.bot = webdriver.Chrome(chrome_path)
def login(self):
bot = self.bot
bot.get("http://front-desk.fr/users/accounts/login/")
time.sleep(5)
email = bot.find_element_by_class_name('textinput textInput form-control')
email.send_keys(self.username)
ed = FrontDesk('myemail@gmail.com', 'password1234')
ed.login()
But an error occur :
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".textinput textInput form-control"}
This is my website so I am sure of the class, and I have looked on SO and the answers were talking about Iframe, I do not have any.
I have tried with class, id etc. everything work except it does not fill the input.