This is how to automatically log in to Instagram using the following codes. I'm using Selenium 4.14
and Firefox browser
.
text_box = driver.find_element(by=By.NAME, value="my-text")
Or driver.find_element(by=By.ID, value="email").send_keys("email")
Or
email_input = driver.find_element(By.NAME, "email_or_username")
I don't know what your real question/issue is TBH, as you have not mentioned the issue you are facing. However, am just giving you a selenium-python code to launch browser, open Instagram application and send username and password into respective text boxes. Hope this helps.
Result: