Category : pyautogui

I want to upload a file to a website try: pk=browser.find_elements_by_class_name(‘fileupload’)[0].click() except: print("not working") browser.execute_script("document.getElementsByClassName(‘fileupload’)[0].click();") time.sleep(2) pyautogui.write("’C:/Users/SOMEN/Downloads/book.pdf’") time.sleep(2) pyautogui.press(‘enter’) this is my code to upload file this works fine. but when the windows file opener opens, my pyautogui write it to the search box but this is the problem windows says this filename is not ..

Read more

I have already used pyautogui on a Mac os system before without any trouble, but now I’m trying on a windows 10 machine running this code: import pyautogui print(pyautogui.position()) And I get the following error: Traceback (most recent call last): File "screenshot.py", line 1, in <module> import pyautogui File "/home/cj/.local/lib/python3.8/site-packages/pyautogui/__init__.py", line 241, in <module> import ..

Read more

I have coded a simple Osu! bot, but it doesnt work. I get no error until i open (fullscreen) osu. I have tried running it from cmd with administrator, but it just wont work. I get this error: Traceback (most recent call last): File "C:/Users/Kris/PycharmProjects/OsuBot/venv/drums.py", line 7, in if pyautogui.pixel(609, 440)[0] == 235: File "C:UsersKrisAppDataLocalProgramsPythonPython38libpyscreeze_init_.py", ..

Read more