This program will play chrome://dino automatically without doing any mistake.
install pyautogui with the command : pip install pyautogui
install PIL with the command : pip install pillow
for windows users:-> from PIL import ImageGrab
for linux users:-> import pyscreenshot as ImageGrab