I have written the following.
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
bot = webdriver.Firefox()
bot.find_element_by_name("username").send_keys(config['username'])
When I am using send_keys and happen to be typing at the same instant, then what I typed is also added in the username.
How to avoid this?
Example:
I want to fill the username with "sandeep" If at the same instant I press 'a', then the username becomes "sandeepa" or something equivalent.