So the start of my program opens up a web page and then clicks on it. This is my code. It opens up the page fine, but doesn't click. I tried to make it move the mouse first, and the mouse moves exactly where I want but doesn't click. I have the sleep function there so web page has time to load before the click happens.
Any help would be appreciated.
import webbrowser
import pyautogui
#Open Website
webbrowser.open('https://www.midomi.com/index.php?action=m\
ain.track&track_id=100712805442046374&from=voice_search')
#Have it record audio
pyautogui.moveTo(659,99)
time.sleep(5)
pyautogui.click(659, 99)