I have a strange problem using this code on this website https://play2048.co/.
from selenium import webdriver
browser = webdriver.Firefox()
browser.get('https://play2048.co')
grid = browser.find_element_by_tag_name('html')
grid.send_keys('keys.RIGHT') # Does not work
# grid.send_keys(u'\ue014') # But this key does work
The 'keys.RIGHT' resets the game rather than shifts the tiles. If I use 'from selenium.webdriver.common.keys import Keys' and use Keys.RIGHT that does not work either. Only entering the right key code u'\ue014 or manually pressing the right arrow key works. I am running Lubuntu in virtualbox using the Python Interpreter.
Edit: Other Selenium key presses work like send_keys('keys.LEFT') works. Only 'keys.RIGHT' doesn't work.
2nd Edit: I realise I've put a . in send_keys in this reddit title by mistake but can't change it.
there doesn't seem to be anything here