Skip to content
Advertisement

Python Selenium send_keys one by one

JavaScript

I am trying to login to this site automatically using Python-Selenium. However, as you might noticed the password input place is not receiving driver.send_keys.

code:

JavaScript

Advertisement

Answer

1 The site starts blocking automated requests after some amount of them is sent. I’ve added one option on how to avoid bot detection. Look for similar questions on this.

2 You can wait for you alert and check the text inside it.

3 Do not Use time.sleep, use implicit/explicit wait Points 2 and 3 were the main problems in your code.

JavaScript

UPDATE and solution

I found out that you start seing a virtual keyboard after some amount of attempts. So, you can bypass it with Javascript:

JavaScript

Instead of

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement