-1

I am interested in a site that when you enter a login, it goes to a password entry page. How can I enter data in such a case?

1
  • Please provide enough code so others can better understand or reproduce the problem. Commented Mar 24 at 0:52

1 Answer 1

0

You can automate this using Selenium in Python. First, enter the login on the first page, submit it, then wait for the password page to load and enter the password. Example:

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys

driver = webdriver.Chrome()
driver.get("https://example.com")

# Enter login
driver.find_element(By.ID, "login_field").send_keys("your_login" + Keys.RETURN)

# Wait for password page (adjust as needed)
driver.implicitly_wait(5)  

# Enter password
driver.find_element(By.ID, "password_field").send_keys("your_password" + Keys.RETURN)

Modify element locators (By.ID) as per the actual website.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.