I have my code working on selenium but the problem is that when the code is running I can't switch to another chrome windows because it will send keybord key to the new one. I need to send the key only to a specific windows where the code is running
driver = webdriver.Chrome('chromedriver')
driver.get ("mywebsite link")
sleep(1)
keyboard.send('l')
sleep(0.5)
keyboard.send('t')
sleep(0.5)
keyboard.send('enter')
time.sleep(0.5)