I was trying to add script to click continue option but its giving me this option what should I do next if anyone can help me.
from selenium import webdriver
driver = webdriver.Chrome("C:/Users/deepak/PycharmProjects/chromedriver.exe")
driver.get("https://www.tppcrpg.net/login.php")
# identify username, password and signin elements
driver.find_element_by_name("LoginID").send_keys("3480199")
driver.find_element_by_name("NewPass").send_keys("12")
driver.find_element_by_class_name("submit").click()
driver.get("https://www.tppcrpg.net/battle_trainer.php")
# identify Enter Trainer Name/Number
driver.find_element_by_name("Trainer").send_keys("2502909")
driver.find_element_by_class_name("submit").click()
driver.find_element_by_class_name("submit").click()
It works fine here but when I add again this line to click continue button
driver.find_element_by_class_name("submit").click()
then this gives me this error
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".submit"}
(Session info: chrome=90.0.4430.72)
driver.find_element_by_name("LoginID").send_keys("2502909")element instead ofdriver.find_element_by_name("Trainer").send_keys("2502909")But I do not understand why don't you fill the password and why are you clicking thesubmitbutton twice?