If I run the python file directly there is no problem.
However, when running in crontab, error “File not found” occurs.
selenium.common.exceptions.InvalidArgumentException:
Message: invalid argument: File not found : /home/ubuntu/service/image.png
I wrote code to upload a file to the input tag using selenium ‘send_keys’.
input.send_keys("home/ubuntu/service/image.png")
Why does this problem only occur in crontab?