#🔒 Cant write email into TextBox using selenium

4 messages · Page 1 of 1 (latest)

thorn forge
#

Hi. Ima trying to write and email into TextBox on google login page but everytime when the code has to write "@" it writes some random thing. It is Either some part of my code, some error that happened in past.. i dont know why is it happening. The email is stored in a string in config.json

Example

email'WebElement' is not iterablegmail.com

should look like

[email protected]

Code:

    time.sleep(2)
    EmailTextBox = "//*[@id='identifierId']"
    EmailTextBox = driver.find_element(By.XPATH, EmailTextBox)
    EmailTextBox.send_keys(GmailEmail)

Json Config:

{
"GmailEmail" : "[email protected]"
}

Python 3.12
selenium 4

brazen creekBOT
#

@thorn forge

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

brazen creekBOT
#

@thorn forge

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.