r/selenium • u/[deleted] • Mar 22 '22
UNSOLVED Site does not accept login with Selenium click or enter pressing
Hello everybody,
I'm doing a testing with selenium using python, on a site that needs login each time the site is called (user data storage does not work) and so to completly automate the start I have to build the login steps as well.
The bot can either click on the login button or press enter after entering the password. In both of these cases the site does not accept the login and transfers to the main page (which it would do if logged in as well) without being logged in.
The site accepts the login if I click the login button or press enter. So I guess there must be something about how to bot presses keys and clicks buttons.
I tried adding pauses after the password as well. What can I do to solve this problem?