when i use send keys to upload a file to an input element i get the file not found error. the code worked completely fine on my local mac but only on the google cloud windows 10 2019 vm im facing this issue. this is the full error i get:
`
Traceback (most recent call last):
File “c:\Users\gg\instabt.py”, line 72, in
input_file.send_keys(“C:\Users\gg\Desktop\comedyvideos\video
_1.mp4”)
File “C:\Users\gg\AppData\Local\Programs\Python\Python312\Lib\site-
packages\selenium\webdriver\remote\webelement.py”, line 230, in send_keys
self._execute(
File “C:\Users\gg\AppData\Local\Programs\Python\Python312\Lib\site-
packages\selenium\webdriver\remote\webelement.py”, line 394, in _execute
return self._parent.execute(command, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\gg\AppData\Local\Programs\Python\Python312\Lib\site-
packages\selenium\webdriver\remote\webdriver.py”, line 344, in execute
self.error_handler.check_response(response)
File “C:\Users\gg\AppData\Local\Programs\Python\Python312\Lib\site-
packages\selenium\webdriver\remote\errorhandler.py”, line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument:
File not found : C:\Users\gg\Desktop\comedyvideos\video_1.mp4
(Session info: chrome=118.0.5993.118)
Stacktrace:
GetHandleVerifier [0x00007FF653198EF2+54786]
(No symbol) [0x00007FF653105612]
(No symbol) [0x00007FF652FBA64B]
(No symbol) [0x00007FF652FF559C]
(No symbol) [0x00007FF65301BE6A]
(No symbol) [0x00007FF652FF22E6]
(No symbol) [0x00007FF65301C080]
(No symbol) [0x00007FF653034D02]
(No symbol) [0x00007FF65301BC43]
(No symbol) [0x00007FF652FF0941]
(No symbol) [0x00007FF652FF1B84]
GetHandleVerifier [0x00007FF6534E7F52+3524194]
GetHandleVerifier [0x00007FF65353D800+3874576]
GetHandleVerifier [0x00007FF653535D7F+3843215]
GetHandleVerifier [0x00007FF653235086+694166]
(No symbol) [0x00007FF653110A88]
(No symbol) [0x00007FF65310CA94]
(No symbol) [0x00007FF65310CBC2]
(No symbol) [0x00007FF6530FCC83]
BaseThreadInitThunk [0x00007FF9ED057AC4+20]
RtlUserThreadStart [0x00007FF9EFB0A4E1+33]
PS C:\Users\gg>`
this is the file upload python code
`71 time.sleep(sleep_time)
72 input_file.send_keys("C:\\Users\\ahamed_a_1235\\Desktop\\comedyvideos\\video_1.mp4")
73
74 print('===============')
75 print('Uploading video')`
these are the libraries im using
i have no idea what to try
Why is
google-cloud-platform
tagged? Your issue is not caused by Google Cloud.